Skip to content

Commit f5a7a06

Browse files
dangreenisraelbvaughn
authored andcommitted
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>
1 parent 98cb6dd commit f5a7a06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/docs/strict-mode.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ Faza aktualizacji jest zazwyczaj bardzo szybka, jednak renderowanie może być p
8787

8888
Cykl życia fazy renderowania odnosi się do poniższych metod z komponentu klasowego:
8989
* `constructor`
90-
* `componentWillMount`
91-
* `componentWillReceiveProps`
92-
* `componentWillUpdate`
90+
* `componentWillMount` (or `UNSAFE_componentWillMount`)
91+
* `componentWillReceiveProps` (or `UNSAFE_componentWillReceiveProps`)
92+
* `componentWillUpdate` (or `UNSAFE_componentWillUpdate`)
9393
* `getDerivedStateFromProps`
9494
* `shouldComponentUpdate`
9595
* `render`

0 commit comments

Comments
 (0)