How to use the @bugsnag/plugin-react function in @bugsnag/plugin-react

To help you get started, we’ve selected a few @bugsnag/plugin-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hashicorp / consul / website / lib / bugsnag.js View on Github external
import React from 'react'
import Bugsnag from '@bugsnag/js'
import BugsnagReact from '@bugsnag/plugin-react'

const apiKey =
  typeof window === 'undefined'
    ? 'be8ed0d0fc887d547284cce9e98e60e5' // server key
    : '01625078d856ef022c88f0c78d2364f1' // client key

if (!Bugsnag._client) {
  Bugsnag.start({
    apiKey,
    plugins: [new BugsnagReact(React)],
    otherOptions: { releaseStage: process.env.NODE_ENV || 'development' },
  })
}

export default Bugsnag
github hashicorp / packer / website / lib / bugsnag.js View on Github external
import React from 'react'
import Bugsnag from '@bugsnag/js'
import BugsnagReact from '@bugsnag/plugin-react'

const apiKey =
  typeof window === 'undefined'
    ? 'b6c57b27a37e531a5de94f065dd98bc0'
    : 'de0b822b269aa57b620efd8927e03744'

if (!Bugsnag._client) {
  Bugsnag.start({
    apiKey,
    plugins: [new BugsnagReact(React)],
    otherOptions: { releaseStage: process.env.NODE_ENV || 'development' },
  })
}

export default Bugsnag

@bugsnag/plugin-react

React integration for @bugsnag/js

MIT
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis

Popular @bugsnag/plugin-react functions

Similar packages