Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eknkc/node-dux
- Owner: eknkc
- Created: 2016-03-13T15:17:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-07T08:56:28.000Z (over 8 years ago)
- Last Synced: 2024-12-17T01:34:13.604Z (17 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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
})
```