Q. What is the purpose of the useState hook in React?
β
Correct Answer: (B)
To manage component state
Explanation: The useState hook is used to create and manage local component state in functional components.