React Component Lifecycle

All React components go through a lifecycle which enables you to perform a specific task at any specific time. In order to achieve that, you can override the lifecycle methods. Methods prefixed with will are called right before something occurs (events), and methods prefixed with did are called right after something occurs.
Let us understand all the functions in all the phases of the lifecycle:

Link: https://dzone.com/articles/react-component-lifecycle