Skip to content

Instantly share code, notes, and snippets.

@Ledoux
Created April 16, 2019 21:08
Show Gist options
  • Save Ledoux/390112ad56dbfa5c972526cdada8c9cf to your computer and use it in GitHub Desktop.
Save Ledoux/390112ad56dbfa5c972526cdada8c9cf to your computer and use it in GitHub Desktop.
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