Skip to content

Commit

Permalink
Merge pull request reactjs#1317 from tusharkhatiwada/typo-hooks-faq
Browse files Browse the repository at this point in the history
Small typo fix
  • Loading branch information
lex111 authored Feb 22, 2019
2 parents 737d007 + a531a0f commit d615c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/hooks-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ There are a few more heuristics, and they might change over time as we fine-tune

### How do lifecycle methods correspond to Hooks? {#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.

Expand Down

0 comments on commit d615c5b

Please sign in to comment.