React components have several lifecycle methods that you can override to run your code at a particular time in the process. In this video, we will explore all the React Component Lifecycle methods.
If this video was helpful, ❤️ it and subscribe to my YouTube channel.

Thank you for the tutorial, Nick 🙏.
I never was exposed to those
rarely used
life cycle methodsshouldComponentUpdate
- for possible optimizationgetDerivedStateFromProps
- for computed statesgetSnapshotBeforeUpdate
- saving state to use it after renderbut now I understand where I need to use them 😎.
What was surprising 😲 was
componentDidCatch
. I thought I had to create a separate component (<ErrorBoundary/>
to be able to use it but it seems like there is no need for it.Tips for others
I was able to get more out of Nick's video while reading the official React documentation & watching the video at the same time.