@bugsnag/plugin-react
TypeScript icon, indicating that this package has built-in type declarations

7.22.7 • Public • Published

@bugsnag/plugin-react

Documentation NPM

NPM

A @bugsnag/js plugin for React. Learn more about error reporting for React applications with Bugsnag.

This package enables you to integrate Bugsnag's error reporting with React's error boundaries. It creates and configures an <ErrorBoundary/> component which will capture and report unhandled errors in your component tree. You either use the <ErrorBoundary/> directly, or extend it to provide some fallback UI for your users.

Reported errors will contain useful debugging info from Reacts's internals such as the component name where the error originated, and the component stack.

Getting started

  1. Create a Bugsnag account
  2. Complete the instructions in the integration guide
  3. Report handled exceptions using Bugsnag.notify()
  4. Customize your integration using the configuration options

Support

License

This package is free software released under the MIT License. See LICENSE.txt for details.

Readme

Keywords

none

Package Sidebar

Install

npm i @bugsnag/plugin-react

Weekly Downloads

224,132

Version

7.22.7

License

MIT

Unpacked Size

17.3 kB

Total Files

6

Last publish

Collaborators

  • joshedney
  • ahmed_bugsnag
  • gingerbenw
  • bullmo
  • foygl
  • djskinner
  • tomlongridge
  • imjoehaines
  • twometresteve