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

2.0.5 • Public • Published

@errortracker/plugin-react

Documentation NPM

NPM

A @errortracker/js plugin for React. Learn more about error reporting for React applications with ErrorTracker.

This package enables you to integrate ErrorTracker'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 ErrorTracker account
  2. Complete the instructions in the integration guide
  3. Report handled exceptions using ErrorTracker.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 @errortracker/plugin-react

Weekly Downloads

2

Version

2.0.5

License

ISC

Unpacked Size

17.5 kB

Total Files

6

Last publish

Collaborators

  • harisankarnayak