Honeybadger - React integration
A honeybadger-js implementation for React.
This package provides a React error boundary from Honeybadger.io. It allows for better
Installation
You can install the package from NPM.
npm
npm i --save honeybadger-js honeybadger-react
yarn add honeybadger-js honeybadger-react
Usage
The recommended usage is by using the Honeybadger.factory method to create a client and passing that into the <HoneybadgerReact />
error boundary component.
import Honeybadger from 'honeybadger-js'
const hbClient = Honeybadger.factory({ apiKey: 'API_KEY' });
import ReactDOM from 'react-dom'
import React from 'react'
import HoneybadgerReact from 'honeybadger-react'
ReactDOM.render(
<HoneybadgerReact client={hbClient}>
<YourApp />
</HoneybadgerReact>,
document.getElementById('app')
)
See the example for more info.
Support
License
The honeybadger-react JS library is free software released under the MIT License. See LICENSE.txt for details.