Really simple React Error boundary component
npm install react-simple-error-boundaryThis is simple ErrorBoundary component
``tsx
import { ErrorBoundary } from "react-simple-error-boundary";
onCatch={e => {
/ do something /
}}
>
`
`tsx
import { withErrorBoundary } from "react-simple-error-boundary";
const WrappedPageOrComponent = withErrorBoundary(PageOrComponent, YourErrorComponentHandler);
``