Each component in React has a lifecycle which you can monitor and manipulate during its three main phases.
The three phases are: Mounting, Updating, and Unmounting.
Mounting – Birth of a Component and insert into Dom
Updating – Growth or Update of component
Unmounting – Death of component