Skip to content

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

Closed
@ntishkevich

Description

@ntishkevich

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions