Last active
December 30, 2015 06:49
-
-
Save yungsters/7791581 to your computer and use it in GitHub Desktop.
React Component Lifecycle Parallels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==== MOUNT ==== ==== UPDATE ==== ==== NOTE ==== | |
getInitialState componentWillReceiveProps Used to update state in response to prop changes. | |
shouldComponentUpdate If false, discards state changes from `componentWillReceiveProps`. | |
componentWillMount componentWillUpdate All state and props are set to what they will be in `render`. | |
< render > < render > | |
componentDidMount componentDidUpdate All DOM mutations have occurred. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment