ReduxResolver
Love Redux but hate switch statements? ReduxResolver provides functions that allow you to write your reducers as dictionaries.
Installation
npm i --save redux-resolver
Usage
resolveEach
const initialState = Map page: 1 { return state} { return state} { return state} initialState actionTypesPREVIOUS_PAGE: prev actionTypesNEXT_PAGE: next actionTypesGO_TO_PAGE: goToPage
resolveAll
const initialState = Map page: 1 initialState actionTypesPREVIOUS_PAGE: state actionTypesNEXT_PAGE: state actionTypesGO_TO_PAGE: state