-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (28 loc) · 840 Bytes
/
index.js
File metadata and controls
31 lines (28 loc) · 840 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
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App/App';
import registerServiceWorker from './registerServiceWorker';
import {Provider} from 'react-redux';
import allReducers from './components/reducers';
import {createStore, applyMiddleware} from 'redux';
import { HashRouter, Route, Switch} from 'react-router-dom';
import Content from './components/Content/Content';
import Routes from './components/Routes/Routes';
devServer: {
historyApiFallback: true
}
const store = createStore(
allReducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
);
ReactDOM.render
(
<Provider store={store}>
<App>
<Routes/>
</App>
</Provider>,
document.getElementById('root')
);
registerServiceWorker();