Q. Which method is used to update state in a class component?
β
Correct Answer: (B)
setState
Explanation: In class components, state is updated using the setState method.