You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/state-and-lifecycle.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,6 @@ To implement this, we need to add "state" to the `Clock` component.
72
72
73
73
State is similar to props, but it is private and fully controlled by the component.
74
74
75
-
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.
76
-
77
75
## Converting a Function to a Class {#converting-a-function-to-a-class}
78
76
79
77
You can convert a function component like `Clock` to a class in five steps:
0 commit comments