A React Component has four stages of its lifecycle as described below.
- Initialization: In this stage the component is constructed with the given properties and the default state. This is done within the constructor of a Component Class.
- Mounting : Mounting is considered as the stage of rendering the JSX returned by the render method itself.
- Updating : Updating is that phase in which the state of a component is updated and the application is modified.
- Unmounting : Unmounting is the final step of the component lifecycle where the component is removed from the page.