React | Error Boundaries and Debugging | Question 1

Last Updated :
Discuss
Comments

What is an error boundary in React?

A component that renders error messages on the screen

A mechanism for catching runtime errors in components

A function that validates inputs

A built-in React hook for error handling

Share your thoughts in the comments