A. To define the initial state of a component
B. To render the component's UI based on its current state and props
C. To handle user interactions and update the component's state
D. To define the lifecycle methods of a component
Correct Answer is :
B. To render the component's UI based on its current state and props