Redux Fluent Save

A Practical and Functional Redux Utility

Project README

redux-fluent

Build Status npm version License Conventional Commits

npm downloads Maintainability Test Coverage

....................:::::::::::::::::::....................

...::: TRY OUR COUNTER REDUCER EXAMPLE ON CODESANDBOX :::...

....................:::::::::::::::::::....................


Installation

yarn add redux-fluent redux flux-standard-action

Documentation

Getting Started

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());

Distribution

Stats

Discussion

License

MIT

Open Source Agenda is not affiliated with "Redux Fluent" Project. README Source: code-y/redux-fluent

Open Source Agenda Badge

Open Source Agenda Rating