react-sentry

1.0.2 • Public • Published

react-sentry

TRAVIS NPM

js-standard-style

Listen to EventEmitters safely with automatic cleanup onComponentWillUnmount.

Example

var Sentry = require('react-sentry')
// ...
 
mixins: [Sentry],
// ...
 
getInitialState () {
    return { online: this.context.myStore.isOnline() }
},
 
componentDidMount () {
    this.watch(this.context.myStore, 'online', (online) => {
        this.setState({ online })
    })
},
 
// ...

License

This library is free and open-source software released under the MIT license.

/react-sentry/

    Package Sidebar

    Install

    npm i react-sentry

    Weekly Downloads

    15

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • jedwatson
    • dcousens