-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.js
30 lines (27 loc) · 862 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
import 'whatwg-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
// Put any other imports below so that CSS from your
// components takes precedence over default styles.
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import rootReducer from './reducers/index';
import { fetchFromQueryString } from './actions/index';
const store = createStore(
rootReducer,
applyMiddleware(thunk)
);
store.dispatch(fetchFromQueryString());
ReactDOM.render(
<Provider store={store} >
<App/>
</Provider>,
document.getElementById('root')
);
registerServiceWorker();