A. It is used to define the initial state of a component
B. It is used to handle user interactions in a component
C. It is used to update the state of a component based on the previous state
D. It is used to render the component's UI
Correct Answer is :
C. It is used to update the state of a component based on the previous state