What is the component lifecycle in class components?
Audio flashcard · 0:12
Nortren·
What is the component lifecycle in class components?
0:12
The lifecycle has three phases: mounting, updating, and unmounting. Key methods include constructor, render, componentDidMount, componentDidUpdate, and componentWillUnmount. Hooks in functional components cover the same scenarios.