-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (21 loc) · 710 Bytes
/
index.js
File metadata and controls
25 lines (21 loc) · 710 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
import React from 'react';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/createBrowserHistory';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import 'rxjs';
import storeFactory from './store';
import registerServiceWorker from './registerServiceWorker';
import { Library } from './actions';
import App from './App';
const history = createBrowserHistory();
const store = storeFactory(history);
store.dispatch(Library.loadLibrary());
ReactDOM.render(
<Provider store={store}>
<ConnectedRouter history={history}>
<App/>
</ConnectedRouter>
</Provider>,
document.getElementById('root'));
registerServiceWorker();