-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
32 lines (29 loc) · 875 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 React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Root from './common/hocs/Root'
import store, { history } from './common/store'
import registerServiceWorker from './registerServiceWorker'
import './assets/scss/material-kit-react.css'
import 'react-chat-elements/dist/main.css'
import './common/utils/firebase'
import './common/styles/app.css'
import './common/styles/transition.css'
render(
<AppContainer>
<Root {...store} history={history} />
</AppContainer>,
document.getElementById('root')
)
if (module.hot) {
module.hot.accept('./common/hocs/Root', () => {
const NextRoot = require('./common/hocs/Root')
render(
<AppContainer>
<NextRoot {...store} history={history} />
</AppContainer>,
document.getElementById('root')
)
})
}
registerServiceWorker()