Switch to Dark Mode

React | Error Boundaries and Debugging | Question 1

Last Updated : Jan 25, 2025
Discuss
Comments

What is an error boundary in React?

A

A component that renders error messages on the screen

B

A mechanism for catching runtime errors in components

C

A function that validates inputs

D

A built-in React hook for error handling

Share your thoughts in the comments