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
This question is part of this quiz :
Error Boundary and Debugging in React