Professional Documents
Culture Documents
20 - Phases of Component
20 - Phases of Component
Baby
Phases / Lifecycle of Components REACT
Organize Arrange
Set Up Prepare
A component is updated
whenever there is a change
in the component's state or props.
Phases / Lifecycle of Components REACT
Error UnMounting
Mounting Updating Handling
Phases / Lifecycle of Components REACT
• Each component in React has a lifecycle which you can monitor and
manipulate during its three main phases.
• The three phases are:
• Mounting
• Updating
• Unmounting
Mounting
Updating
UnMounting Header
Header
Content
React’s Actual
Virtual DOM DOM Side
Sidebar Content
bar
Footer
Error Handling
React’s Virtual DOM REACT
• Each component has several “lifecycle methods” that you can override
to run code at particular times in the process.