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.
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.
import ErrorBoundary from "@/components/ui/ErrorBoundary";
<ErrorBoundary>
<Component />
</ErrorBoundary>