Created
August 22, 2016 09:44
-
-
Save jacobp100/5bd9b3ad53e74b8854b1f92b7ae4067d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware, combineReducers } from 'redux'; | |
const middlewares = applyMiddleware( | |
thunk, | |
fetchMiddleware(fetch, 'http://api.server.com') | |
); | |
const store = createStore(reducers, initialState, middlewares); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment