Raja Muhammad Asher
Raja Muhammad Asher

Raja Muhammad Asher

What are the different phases of the component
lifecycle?

Photo by Lautaro Andreani on Unsplash

What are the different phases of the component lifecycle?

Raja Muhammad Asher's photo
Raja Muhammad Asher
·Aug 9, 2022·

1 min read

The three phases are: Mounting, Updating, and Unmounting.

  • Mounting means putting elements into the DOM.

  • Updating A component is updated whenever there is a change in the component's state or props.

  • Unmounting is when a component is removed from the DOM.

 
Share this