import * as types from "../constants/ActionTypes"; import initialState from "../initialState"; export default (state = initialState.counter, action) => { switch (action.type) { case types.INCREASE: { console.log("INCREASE", action); return { ...state, data: state.data + 1 }; } default: return state; } };