ErrorBoundary
a React boundary component that renders a fallback UI when an error occurs.
You can customize the fallback UI by passing a fallback
prop to the
ErrorBoundary
component.
Installation
Usage
import ErrorBoundary from "@/components/ui/ErrorBoundary";
<ErrorBoundary> <Component /> </ErrorBoundary>