React | Error Boundaries and Debugging | Question 3

Last Updated :
Discuss
Comments

What method is used to define an error boundary in React?

componentDidCatch()

useEffect()

componentWillUnmount()

useState()

Share your thoughts in the comments