A simple React component for Sentry integration.
npm install --save react-raven
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;
required The dsn url to the sentry instance (more information).
optional The optional sentry configuration (more information).