Q. How do you update the state in React functional components?
β
Correct Answer: (A)
Using the setter function returned by useState
Explanation: useState returns a state variable and a function to update it.