react-minimal-error-boundary
v1.0.1
Published
Minimal React error boundary component for React 16+
Downloads
2
Readme
react-minimal-error-boundary
Minimal React error boundary component for React 16+
yarn add react-minimal-error-boundary
# or
npm install react-minimal-error-boundary
Usage
import ErrorBoundary from 'react-minimal-error-boundary';
<ErrorBoundary>
<Root />
</ErrorBoundary>
Props
onError
:PropTypes.func
onRerendered
:PropTypes.func
FallbackComponent
:PropTypes.oneOfType([PropTypes.element, PropTypes.func])
rerender
:PropTypes.bool
license
© sugarshin