-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (24 loc) · 779 Bytes
/
index.js
File metadata and controls
28 lines (24 loc) · 779 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
import React from 'react';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import {render} from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import 'font-awesome/css/font-awesome.css';
import registerServiceWorker from './registerServiceWorker';
import App from './App';
import reducers from './reducers/index';
import './index.css';
const loggerMiddleware = createLogger();
const store = createStore(
reducers,
applyMiddleware(thunkMiddleware, loggerMiddleware),
);
const appjs = () => (
<Provider store={store}>
<App store={store} />
</Provider>
);
render(appjs(), document.getElementById('root'));
registerServiceWorker();