Minimal React error boundary component for React 16+
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
test
.babelrc
.eslintrc
.gitignore
.node-version
README.md
package.json
yarn.lock

README.md

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