1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-16 12:32:48 +00:00

added check fetching functionality

This commit is contained in:
2016-08-27 07:30:32 +00:00
parent 4bcb240e97
commit d173b06129
6 changed files with 33 additions and 8 deletions

View File

@@ -2,10 +2,11 @@ import {applyMiddleware, createStore} from 'redux';
import {syncHistoryWithStore} from 'react-router-redux';
import {browserHistory} from 'react-router';
import thunk from 'redux-thunk';
import logger from 'redux-logger';
import reducers from './reducers';
const middleware = applyMiddleware(thunk);
const middleware = applyMiddleware(thunk, logger());
//create the new store with default state as an empty object
const store = createStore(reducers, {}, middleware);