Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Mar 24, 2018
1 parent 7425aed commit 65b1496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/blog/2018-03-15-update-on-async-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Before we begin, here's a quick overview of the lifecycle changes planned for ve

`embed:update-on-async-rendering/new-lifecycles-overview.js`

The new static `getSnapshotBeforeUpdate` lifecycle is invoked after a component is instantiated as well as when it receives new props. It can return an object to update `state`, or `null` to indicate that the new `props` do not require any `state` updates.
The new static `getDerivedStateFromProps` lifecycle is invoked after a component is instantiated as well as when it receives new props. It can return an object to update `state`, or `null` to indicate that the new `props` do not require any `state` updates.

The new `getSnapshotBeforeUpdate` lifecycle is called right before mutations are made (e.g. before the DOM is updated). The return value for this lifecycle will be passed as the third parameter to `componentDidUpdate`.

Expand Down

0 comments on commit 65b1496

Please sign in to comment.