Browse Source

Updated strict-mode docs to use `UNSAFE_*` lifecycle method names (#2683)

* Updated strict-mode docs to use UNSAFE_ method names

The strict mode docs still reference the old `componentWill*` lifecycle method names, this updates them to be `UNSAFE_componentWill*`

* Tweaked docs to mention both unsafe lifecycle names

Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com>
main
Dan Green 5 years ago
committed by Brian Vaughn
parent
commit
d7e9a52d7d
  1. 6
      content/docs/strict-mode.md

6
content/docs/strict-mode.md

@ -87,9 +87,9 @@ The commit phase is usually very fast, but rendering can be slow. For this reaso
Render phase lifecycles include the following class component methods:
* `constructor`
* `componentWillMount`
* `componentWillReceiveProps`
* `componentWillUpdate`
* `componentWillMount` (or `UNSAFE_componentWillMount`)
* `componentWillReceiveProps` (or `UNSAFE_componentWillReceiveProps`)
* `componentWillUpdate` (or `UNSAFE_componentWillUpdate`)
* `getDerivedStateFromProps`
* `shouldComponentUpdate`
* `render`

Loading…
Cancel
Save