Skip to content

Instantly share code, notes, and snippets.

@mercykip
Created July 19, 2021 13:48
Show Gist options
  • Select an option

  • Save mercykip/86bb7192c93417dad83213f5fd476ee1 to your computer and use it in GitHub Desktop.

Select an option

Save mercykip/86bb7192c93417dad83213f5fd476ee1 to your computer and use it in GitHub Desktop.
import { combineReducers } from "redux";
import { userReducers } from "./reducer";
/// combine reducer helps your reducer to manage their own slices of state.
/// it will combine all reducers passed to it into a single reducing function
/// that can be exported as default
const reducers = combineReducers({
user: userReducers
});
export default reducers;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment