mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
removed sentence since functions can have state (#1878)
With introduction of hooks, that statement is not valid anymore
This commit is contained in:
committed by
Brian Vaughn
parent
2753191ee2
commit
d0f2db967a
@@ -72,8 +72,6 @@ To implement this, we need to add "state" to the `Clock` component.
|
||||
|
||||
State is similar to props, but it is private and fully controlled by the component.
|
||||
|
||||
We [mentioned before](/docs/components-and-props.html#functional-and-class-components) that components defined as classes have some additional features. Local state is exactly that: a feature available only to classes.
|
||||
|
||||
## Converting a Function to a Class {#converting-a-function-to-a-class}
|
||||
|
||||
You can convert a function component like `Clock` to a class in five steps:
|
||||
|
||||
Reference in New Issue
Block a user