@eknkc/dux
v3.3.0
Published
Redux helpers
Downloads
46
Readme
dux
Immutable redux helpers
usage
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
})