【文件属性】:
文件名称:redux-chainsaw:[EXPERIMENT] redux动作创建者和reducer名称空间
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-03 18:19:02
JavaScript
该项目是当前在制品
Redux-链锯
允许您以树形结构指定动作创建者和归约者。 键映射到操作类型。
行动树
const actionTree = {
deals : {
default : someActionCreatorFn ,
searchFilter : {
default : someOtherActionCreatorFn ,
page : someOtherActionCreatorFn
}
}
} ;
const ActionCreators = createActionCreators ( actionTree ) ;
// lookup the action creator for 'deals.searchFilter.page'
let actionCreator = lookupActionCreator (
【文件预览】:
redux-chainsaw-master
----.gitignore(23B)
----package.json(800B)
----ReduxChainsaw.js(4KB)
----demo()
--------webpack.config.js(156B)
--------index.js(3KB)
--------index.html(119B)
--------npm-debug.log(2KB)
--------.editorconfig(30B)
----README.markdown(1KB)
----test()
--------ReduxChainsaw.spec.js(3KB)