Skip to content

[Documentation] Glossary: Only calss components can have state #1767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ntishkevich opened this issue Mar 1, 2019 · 1 comment
Closed

[Documentation] Glossary: Only calss components can have state #1767

ntishkevich opened this issue Mar 1, 2019 · 1 comment

Comments

@ntishkevich
Copy link
Contributor

ntishkevich commented Mar 1, 2019

Hey,
I was reviewing a PR with Russian translation of the article Glossary of React Terms and noticed that there is a sentence about class components and state.

Only components defined as classes can have state.

You can find it here in the second paragraph.

React provides a hook useState to declare a state for functional components. So I would like to ask, should it be changed after hooks was shipped?

@alexkrolick
Copy link
Collaborator

Yes, PR welcome to change it 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants