Skip to content

thejasonxie/react-event-narc

Repository files navigation

React Event Narc

Documentation

A simple and flexible event tracker for React without any bloat. Have a narc inform you of critical user events in your application.

Status

Please beware, React Event Narc is currently in development and may not be ready for production use.

Usage

<EventNarc
  informOn={(data) => ["error", "network"].some(data.eventType)}
  informTo={(data) => {
    sendToApi(data);
    sendToEmail(data);
  }}
>
  <InformOnMouseEvents />
  <InformOnErrorEvents />
  <InformOnKeyboardEvents />
  <InformOnNetworkEvents
    shouldLogEvent={(response) => response.status != 200}
  />
</EventNarc>

About

A simple and flexible event tracker for React without any bloat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published