You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Use the following plugins and guides to integrate Bugsnag with various framework
54
54
55
55
* Check out the [FAQ](https://docs.bugsnag.com/platforms/javascript/faq) and [configuration options](https://docs.bugsnag.com/platforms/javascript/configuration-options)
56
56
*[Search open and closed issues](https://github.com/bugsnag/bugsnag-js/issues?q=+) for similar problems
57
-
*[Report a bug or request a feature](https://github.com/bugsnag/bugsnag-js/issues/new)
57
+
*[Report a bug or request a feature](https://github.com/bugsnag/bugsnag-js/issues/new/choose)
Copy file name to clipboardexpand all lines: packages/plugin-react/README.md
+9-32
Original file line number
Diff line number
Diff line change
@@ -11,43 +11,20 @@ This package enables you to integrate Bugsnag's error reporting with React's [er
11
11
12
12
Reported errors will contain useful debugging info from Reacts's internals such as the component name where the error originated, and the component stack.
13
13
14
-
## Installation
15
-
16
-
```sh
17
-
npm i --save @bugsnag/js @bugsnag/plugin-react
18
-
# or
19
-
yarn add @bugsnag/js @bugsnag/plugin-react
20
-
```
21
-
22
-
## Usage
23
-
24
-
Depending on how your application is structured, usage differs slightly:
25
-
26
-
```js
27
-
// initialize bugsnag ASAP, before other imports
28
-
importBugsnagfrom'@bugsnag/js'
29
-
Bugsnag.start('API_KEY')
30
-
31
-
importReactDOMfrom'react-dom'
32
-
importReactfrom'react'
33
-
importbugsnagReactfrom'@bugsnag/plugin-react'
34
-
Bugsnag.use(bugsnagReact, React)
35
-
36
-
// wrap your entire app tree in the ErrorBoundary provided
37
-
constErrorBoundary=Bugsnag.getPlugin('react');
38
-
ReactDOM.render(
39
-
<ErrorBoundary>
40
-
<YourApp />
41
-
</ErrorBoundary>,
42
-
document.getElementById('app')
43
-
)
44
-
```
14
+
## Getting started
15
+
16
+
1.[Create a Bugsnag account](https://www.bugsnag.com)
17
+
2. Complete the instructions in the [integration guide](https://docs.bugsnag.com/platforms/javascript/react/)
0 commit comments