Clean Redux Reducer
Create reducer without messy looking switch statements.
Installation
NPM:
npm install clean-redux-reducer
Yarn:
yarn add clean-redux-reducer
Usage
// reducer.js; const initialState = // ... tick: 0; { return ...state tick: statetick + actionincrementBy || 1 ;} { return ...state tick: statetick - actionincrementBy || 1 ;} const reducer = CreateReducer ; ;