In React Everything has a lifecycle that can be observed or controlled during three phases
Mounting
Updating
Unmounting
Mounting
constructor
getDerivedStateFromStaticProps
render
componentDidMount
Updating
shouldComponentUpdate
componentDidUpdate
getSnapShotBeforeUpdate
render
Unmount
componentWillUnmount
Apart from this, we have
componentDidCatch(To Catch Error)