Files
developer-roadmap/roadmaps/react/content/error-boundaries@gMHMjsh0i8paLZUH5mDX3.md
T

533 B

Error Boundaries

An error boundary is a component that catches JavaScript errors thrown by its child components during rendering, preventing the whole app from crashing. Instead of showing a broken UI, it can display a fallback message. Error boundaries only catch errors in the component tree below them, not in event handlers or asynchronous code.

Visit the following resources to learn more: