React | Working of React | Question 3

Last Updated :
Discuss
Comments

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

Share your thoughts in the comments