There are many different life cycle methods, but in this post we’re going to explore the ones that are used most often (which will cover ~90% of use cases).
You can really break React’s Life Cycle Methods down into two categories.
- When a component get mounted to the DOM and unmounted.
- When a component receives new data.