A. To perform cleanup operations before a component is unmounted
B. To handle errors that occur during rendering or in lifecycle methods
C. To update the component's state and trigger re-rendering based on certain conditions
D. None of the above
Correct Answer is :
C. To update the component's state and trigger re-rendering based on certain conditions