See more
const counter = (state = 0, action) => switchcase({ 'INCREMENT': state + 1, 'DECREMENT': state -1 })(state)(action.type)