Skip to content

Instantly share code, notes, and snippets.

@perjo927
Created September 8, 2020 15:00
Show Gist options
  • Save perjo927/6bbb1b8c94d226d4c262e41451c7cea3 to your computer and use it in GitHub Desktop.
Save perjo927/6bbb1b8c94d226d4c262e41451c7cea3 to your computer and use it in GitHub Desktop.
Export reducers
import { visibilityReducer } from "./visibility";
import { todoReducer, areTodosEqual } from "./todos";
import { getUndoableReducer } from "./undoable";
import { combineReducers } from "./combineReducers";
export const undoableTodoReducer = getUndoableReducer(
todoReducer,
areTodosEqual
);
export const rootReducer = combineReducers({
todos: undoableTodoReducer,
visibility: visibilityReducer,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment