Created
April 16, 2019 21:08
-
-
Save Ledoux/390112ad56dbfa5c972526cdada8c9cf to your computer and use it in GitHub Desktop.
This file contains 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 { applyMiddleware, combineReducers, createStore } from "redux"; | |
import thunk from "redux-thunk"; | |
import { createDataReducer } from "redux-thunk-data"; | |
const storeEnhancer = applyMiddleware(thunk.withExtraArgument({ rootUrl: "https://foo.com" })); | |
const rootReducer = combineReducers({ data: createDataReducer() }); | |
const store = createStore(rootReducer, storeEnhancer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment