redux-fluent
TypeScript icon, indicating that this package has built-in type declarations

0.100.4 • Public • Published

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

/redux-fluent/

    Package Sidebar

    Install

    npm i redux-fluent

    Weekly Downloads

    34

    Version

    0.100.4

    License

    MIT

    Unpacked Size

    68.7 kB

    Total Files

    18

    Last publish

    Collaborators

    • hitmands
    • lughino