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.
This component will be deprecated soon in favor of https://nextjs.org/blog/next-16-2#unstable_catcherror
Installation
Usage
import ErrorBoundary from "@/components/ui/ErrorBoundary";
<ErrorBoundary> <Component /> </ErrorBoundary>