Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.43 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.43 KB

react-minimal-error-boundary

CircleCI Codecov

npm version License

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

MIT

© sugarshin