-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
43 lines (33 loc) · 979 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
33
34
35
36
37
38
39
40
41
42
43
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux'
import './index.css';
import 'semantic-ui-css/semantic.min.css';
import App from './app/layout/App';
import registerServiceWorker from './registerServiceWorker';
import {configureStore} from './app/store/configureStore'
import ScrollToTop from './app/common/util/ScrollToTop'
import { loadEvents } from './features/event/eventActions'
const store = configureStore();
store.dispatch(loadEvents())
// const rootEl = document.getElementById('root');
// let render = ()=>{
// ReactDOM.render(<App />,rootEl)
// }
// if(module.hot){
// module.hot.accept('./App',()=>{
// setTimeout(render)
// })
// }
// render(App);
ReactDOM.render(
<Provider store={store}>
<BrowserRouter>
<ScrollToTop>
<App />
</ScrollToTop>
</BrowserRouter>
</Provider>,
document.getElementById('root'));
registerServiceWorker();