yarn add redux-fluent redux flux-standard-action
import { createStore } from 'redux';
import { createAction, createReducer, ofType } from 'redux-fluent';
const increment = createAction('increment');
const decrement = createAction('decrement');
const counter = createReducer('counter')
.actions(
ofType(increment).map(state => state + 1),
ofType(decrement).map(state => state - 1),
)
.default(() => 0);
const store = createStore(counter);
store.dispatch(increment());