Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eknkc/node-dux

Immutable redux helpers
https://github.com/eknkc/node-dux

Last synced: 9 days ago
JSON representation

Immutable redux helpers

Awesome Lists containing this project

README

        

# dux

Immutable redux helpers

## usage

```js
import { createAction, createReducer, combineReucers } from "@eknkc/dux"

let setTitle = createAction("setTitle");

let reducers = createReducer({ title: "" }, {
[setTitle.type]: (state, action) => state.set('name', action.payload)
})

let combined = combineReducers({
post: reducers
})
```