hooks:AnewJs React挂钩

时间:2021-03-26 18:50:30
【文件属性】:
文件名称:hooks:AnewJs React挂钩
文件大小:110KB
文件格式:ZIP
更新时间:2021-03-26 18:50:30
TypeScript @anew/hooks 用于响应应用程序的AnewJS挂钩 更新 对于更新,请检查“ 。 安装 要将@anew/hooks直接安装到项目中,请运行: npm i @anew/hooks -S 对于纱线用户,运行: yarn add @anew/hooks 用法 import { createStore } from '@anew/store' import { createUseStoreState } from '@anew/hooks' // Example Store const CounterStore = createStore ( { count : 1 } ) // Create Hook to use counter state const useCounterState = createUseStoreState ( CounterStore ) // Usage
【文件预览】:
hooks-master
----.gitignore(42B)
----tsconfig.json(5KB)
----README.md(984B)
----CHANGELOG.md(322B)
----rollup.config.js(3KB)
----test()
--------typescript.spec.ts(202B)
----.prettierrc(159B)
----LICENSE(1KB)
----.babelrc.js(625B)
----package.json(3KB)
----src()
--------types.ts(126B)
--------batch.ts(451B)
--------shallowEqual.ts(717B)
--------createUseStoreState.ts(4KB)
--------store.d.ts(6KB)
--------index.ts(128B)
--------Subscription.ts(3KB)
----.eslintignore(30B)
----.editorconfig(207B)
----yarn.lock(254KB)
----.eslintrc.js(735B)

网友评论