A React error boundary component with integrated Sentry error reporting using Raven JS
npm install react-sentry-error-boundary
npm install --save-dev react-sentry-error-boundary
`
$3
#### Peer Dependencies
`
prop-types >=15.5.0
raven-js >=3.26.3
react >=16.0.0
`
$3
`js
import MyWidget from './MyWidget'
import SentryErrorBoundary from 'react-sentry-error-boundary'
import React from 'react'
const App = () =>
export default App
`
$3
#### config
Documentation
`
A Sentry configuration object.
`
#### dsn
Documentation
`
REQUIRED. A Sentry DSN URL.
`
#### errorCallback
`
A callback function to execute on error.
`
#### errorNode
`
A node to render on error.
`
#### logErrors
`
A bool indicating whether errors are logged to Sentry. Defaults to true.
`
#### userContext
Documentation
`
A Sentry user context object.
``