Skip to content

A simple React component for Sentry integration.

License

Notifications You must be signed in to change notification settings

netsyno/react-raven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-raven

A simple React component for Sentry integration.

Installing

npm install --save react-raven

Usage

  import React from 'react';
  import useRaven from 'react-raven';

  fuction Application(props) {
    const dsn = 'https://<key>@sentry.io/<project>';
    useRaven(dsn)
    return (
      <div>
        {'...your components...'}
      </div>
    );
  }

  export default Application;

Properties

dsn

required The dsn url to the sentry instance (more information).

config

optional The optional sentry configuration (more information).