Q. Which method can be used to handle errors in React class components?
β
Correct Answer: (A)
componentDidCatch
Explanation: componentDidCatch is a lifecycle method used to catch errors in class components.