forked from exceptionless/Exceptionless.JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
32 lines (28 loc) · 871 Bytes
/
App.js
File metadata and controls
32 lines (28 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React, { Component } from 'react';
import './App.css';
import { Exceptionless, ExceptionlessErrorBoundary } from "@exceptionless/react";
class App extends Component {
async componentDidMount() {
await Exceptionless.startup(c => {
c.apiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw";
c.serverUrl = "http://localhost:5000";
c.useDebugLogger();
c.defaultTags.push("Example", "React");
})
}
render() {
return (
<ExceptionlessErrorBoundary>
<div className="App">
<header className="App-header">
<h1 className="App-title">Exceptionless React Sample</h1>
</header>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
</ExceptionlessErrorBoundary>
);
}
}
export default App;