Problem Statement
What are the different phases of the React component lifecycle?
Explanation
There are three phases: mounting (render and init), updating (re-render on changes), and unmounting (cleanup). React handles each phase internally.
Practice Sets
This question appears in the following practice sets: