react-minimal-error-boundary

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    4
  • 1.0.0
    2

Package Sidebar

Install

npm i react-minimal-error-boundary

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

14.7 kB

Total Files

4

Last publish

Collaborators

  • sugarshin