forked from careerfairsystems/nexpo-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
32 lines (24 loc) · 724 Bytes
/
index.js
File metadata and controls
32 lines (24 loc) · 724 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
/*
* This is the main entrypoint for the application
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter, Route } from 'react-router-dom';
import { setupErrorTracking } from './Util/ErrorTracking';
import App from './App';
import './index.css';
import { getStore, Actions } from './Store';
if (process.env.NODE_ENV === 'production') {
setupErrorTracking();
}
const store = getStore();
store.dispatch(Actions.users.getCurrentUser());
ReactDOM.render(
<Provider store={store}>
<BrowserRouter>
<Route component={App} />
</BrowserRouter>
</Provider>,
document.getElementById('root') || document.createElement('div')
);