Flesh it out a little

This commit is contained in:
Timothy Warren 2018-04-06 14:50:21 -04:00
parent d305f7c763
commit f077346449
2 changed files with 31 additions and 1 deletions

BIN
Lifecycle-chart.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

View File

@ -1,3 +1,33 @@
# React-Lifecycle-Cheatsheet
Short reference of React.Component lifecycle methods so I don't have to scroll through the huge text on the official documentation
Short reference of React.Component lifecycle methods so I don't have to scroll through the huge text on the official documentation
![Lifecycle Diagram](./Lifecycle-chart.jpg)
## Mounting
### constructor ()
```
/**
* Create state and call super
*
* @param {object} props
*/
constructor (props) {
super(props);
this.state = {
foo: 'bar'
}
}
```
### static getDerivedStateFromProps ()
## Updating
### shouldComponentUpdate ()
## Unmounting
### componentWillUnmount ()