Life Cycle
Life Cycle
1. Mounting phase
2. Updating phase
In the updating phase changes are made to the component. These changes are made to
the state of the component.
a) getDerivedStateFromProps()
b) shouldComponentUpdate()
c) render()
d) getSnapshotBeforeUpdate()
e) componentDidUpdate()
3. Unmounting phase
In this phase a component is removed from the DOM
a) ComponentWillUnmount