1.0.1 • Published 8 years ago

nesting-reducer v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
8 years ago

nesting-reducer

=========================

What is it

nesting-reducer is used for combine reducer as a nesting structure.

we aways use redux's to combineReducers, and we lost the big picture of state tree.

if u use nesting-reducer u can nesting-combine the reducers.

Install

npm install nesting-reducer

How to Use

  import {nestCombineReducers, handleActionsReducor, defaultStateReducor,
  actionPayloadReducer} from 'nesting-reducer';

 let stateTree = {
  config: {
    lng: handleActionsReducor('en-US', handleActionsObject)
  },

  user: {
    friend: {
      tag: handleActionsReducor([], handleActionsObject),
      list: handleActionsReducor([], handleActionsObject)
    },
    current: handleActionsReducor(null, handleActionsObject)
  },
 }

 let rootReducer = nestCombineReducers(stateTree);
1.0.1

8 years ago

1.0.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago