react-simple-error-boundary
v1.3.1
Published
Really simple React Error boundary component
Readme
React Simple Error Boundary
This is simple ErrorBoundary component
Usage with Component
import { ErrorBoundary } from "react-simple-error-boundary";
<ErrorBoundary
errorComponent={YourErrorComponentHandler}
onCatch={e => {
/* do something */
}}
>
<PageOrComponent/>
</ErrorBoundary>Usage with HOC
import { withErrorBoundary } from "react-simple-error-boundary";
const WrappedPageOrComponent = withErrorBoundary(PageOrComponent, YourErrorComponentHandler);