RxState::pill:将任何对象或数组变成React式存储

时间:2024-05-20 11:40:08
【文件属性】:

文件名称:RxState::pill:将任何对象或数组变成React式存储

文件大小:60KB

文件格式:ZIP

更新时间:2024-05-20 11:40:08

rxjs es6 npm-package unidirectional-data-flow state-store

接收状态 将任何对象或数组变成React式存储 像这样使用它: import { rxStore , rxLogger } from 'rxstatestore' // init store with seed state // actions take manipulation params // reducers are passed state at time of invocation // the reducer is expected to return new state post manipulation const Counter = rxStore ( 0 , { increment : ( amount = 1 ) => count => count + amount , decrement : ( amount = 1 ) => count => coun


【文件预览】:
RxState-master
----.gitignore(14B)
----package.json(610B)
----package-lock.json(3KB)
----src()
--------index.js(958B)
----dist()
--------index.js(1KB)
----rollup.config.dev.js(373B)
----rollup.config.js(371B)
----README.md(1KB)
----demo()
--------index.html(523B)
--------demo.js(586B)
--------rxstatestore.js(200KB)
--------rxstate.js(200KB)

网友评论