Created
September 8, 2020 15:00
-
-
Save perjo927/6bbb1b8c94d226d4c262e41451c7cea3 to your computer and use it in GitHub Desktop.
Export reducers
This file contains hidden or 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 { 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