Skip to main content

Error Boundary

React component that catches errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed.


Usage

import { ErrorBoundary } from "@newfold/ui-component-library";

<ErrorBoundary
fallback={<div>Something went wrong</div>}
>
<App />
</ErrorBoundary>

Complete component documentation: bvaughn/react-error-boundary

Hello From Root