repatch:减少派遣

时间:2021-02-05 18:24:37
【文件属性】:
文件名称:repatch:减少派遣
文件大小:34KB
文件格式:ZIP
更新时间:2021-02-05 18:24:37
react redux middleware dispatch redux-thunk 调度减少器 只是简化的 ,它使您可以通过直接调度reducer来更简单地创建动作。 store . dispatch ( state => ( { ... state , counter : state . counter + 1 } ) ) ; 在此术语中,动作是返回归约器的函数: const increment = amount => state => ( { ... state , counter : state . counter + amount } ) ; store . dispatch ( increment ( 42 ) ) ; 动机 具有详细的操作管理。 大多
【文件预览】:
repatch-master
----rollup.config.js(296B)
----package.json(2KB)
----test()
--------thunk.spec.ts(1KB)
--------store.spec.ts(4KB)
----package-lock.json(113KB)
----src()
--------store.ts(2KB)
--------thunk.ts(1002B)
--------types.ts(555B)
----tsconfig.json(289B)
----rollup.config.prod.js(210B)
----LICENSE.md(1KB)
----.gitignore(38B)
----CHANGELOG.md(228B)
----README.md(8KB)

网友评论