react-raven
Version:
A simple React component for Sentry integration.
41 lines (27 loc) • 691 B
Markdown
# react-raven
A simple React component for Sentry integration.
### Installing
```
npm install --save react-raven
```
### Usage
```js
import React from 'react';
import Raven from 'react-raven';
fuction Application(props) {
return (
<div>
<Raven dsn="https://<key>@sentry.io/<project>" />
{'...your staff...'}
</div>
);
}
export default Application;
```
### Properties
#### dsn
**required**
The dsn url to the sentry instance ([more information](https://docs.sentry.io/quickstart/#configure-the-dsn)).
#### config
**optional**
The optional sentry configuration ([more information](https://docs.sentry.io/clients/javascript/config/)).