A. To update the state of a component
B. To define the initial state of a component
C. To handle user interactions in a component
D. To render the component's UI