Which of the following is true about React’s component lifecycle?
It has only a mounting phase
It includes phases like mounting, updating, and unmounting
The lifecycle methods are optional in class components
The component lifecycle works only on state changes
This question is part of this quiz :
Working of React