Lifecycle methods are available to class based components:
constructor
static getDerivedStateFromProps
render()
componentDidMount
getSnapshotBeforeUpdate
shouldComponentUpdate
componentDidUpdate -> after the component updates
componentWillUnmount() → cleanup when the component is unmounting
componentDidCatch
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience