mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Small typo fix
This commit is contained in:
@@ -109,7 +109,7 @@ There are a few more heuristics, and they might change over time as we fine-tune
|
||||
|
||||
### How do lifecycle methods correspond to Hooks?
|
||||
|
||||
* `constructor`: Function components don't need a constructor. You can initialize the state in the [`useState`](/docs/hooks-reference.html#usestate) call. If computing it is expensive, you can pass a function to `useState`.
|
||||
* `constructor`: Function components don't need a constructor. You can initialize the state in the [`useState`](/docs/hooks-reference.html#usestate) call. If computing is expensive, you can pass a function to `useState`.
|
||||
|
||||
* `getDerivedStateFromProps`: Schedule an update [while rendering](#how-do-i-implement-getderivedstatefromprops) instead.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user