# nesting-reducer

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

Latest version **1.0.1** (published 2016-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install nesting-reducer
pnpm add nesting-reducer
yarn add nesting-reducer
bun add nesting-reducer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-10-20 |
| First published | 2016-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | alex.zhang |
| Maintainers | alex-zhang |

## Links

- npm: https://www.npmjs.com/package/nesting-reducer
- Homepage: https://github.com/alex-zhang/nesting-reducer
- npm.io page: https://npm.io/package/nesting-reducer

## Dependencies (2)

- [redux](https://npm.io/package/redux.md) ^3.3.1
- [redux-actions](https://npm.io/package/redux-actions.md) ^0.9.1

## Recent versions

- 1.0.1 (latest) — 2016-10-20
- 1.0.0 — 2016-10-19
- 0.0.5 — 2016-02-26
- 0.0.4 — 2016-02-26
- 0.0.3 — 2016-02-26
- 0.0.2 — 2016-02-26
- 0.0.1 — 2016-02-26

## README

# 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
----------------------

``` bash
npm install nesting-reducer
```

How to Use
----------------------

```js
  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);
```

---
_Source: https://npm.io/package/nesting-reducer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
