We have seen up to this point that Reacts web applications are really an assortment of free parts that are run by the communications made with them. Each React Component has its very own lifecycle, the lifecycle of a part can be characterized as the series of strategies that are summoned in various phases of the part's presence. The definition is really clear however what do we mean by various stages? A React Component can carry on with four phases of its life as follows.
Initialization: Here the part is developed with the given Props and default state. This is done in the constructor of a Component Class.
Mounting: Mounting is the phase of delivering the JSX returned by the rendering strategy itself.
Updating: Refreshing is the stage when the condition of a part is refreshed and the application is repainted.
Unmounting: As the name recommends Unmounting is the last advance of the part lifecycle where the part is taken out from the page.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)