Skip to content

Commit 0908b19

Browse files
authored
Merge pull request FrontendMasters#38 from glrodasz/hotfix-correct-update-lifecycle
Fixing the updating phase in the react component lifecycle
2 parents 27d13c3 + b253d5c commit 0908b19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

basic-react-components/6.7.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ Below I show a table for each category and the containing lifecycle methods.
9191
<ol>
9292
<li><code>componentWillReceiveProps()</code></li>
9393
<li><code>shouldComponentUpdate()</code></li>
94+
<li><code>componentWillUpdate()</code></li>
9495
<li><code>render()</code></li>
9596
<li>Children Life cycle methods</li>
96-
<li><code>componentWillUpdate()</code></li>
97+
<li><code>componentDidUpdate()</code></li>
9798
</ol>
9899
* Unmount Phase follows this order:
99100
<ol>

0 commit comments

Comments
 (0)