Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { createStore, combineReducers, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import categories from "./views/Categories/reducer";
import products from "./views/Products/reducer";
const rootReducer = combineReducers({ categories, products });
const defaultState = {};
const store = createStore(rootReducer, defaultState, applyMiddleware(thunk));
export default store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment