-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (27 loc) · 807 Bytes
/
index.js
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 'es5-shim'
import 'es6-shim'
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import registerServiceWorker from './registerServiceWorker'
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'
import * as ReactGA from 'react-ga'
import { initStore } from './store'
import Root from './Root'
const { store, persistor } = initStore()
if (process.env.NODE_ENV === 'production') {
ReactGA.initialize('UA-143826195-1')
ReactGA.pageview('Homepage')
}
function WrappedApp () {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Root/>
</PersistGate>
</Provider>
)
}
ReactDOM.render(<WrappedApp/>, document.getElementById('root'))
registerServiceWorker()