switch (action.type) { case IncrementCounterAction.type: return state.update(...); case DeccrementCounterAction.type: return state.update(...); .... }