文件名称:live-store:基于redux和react hook封装的迷你状态管理器
文件大小:80KB
文件格式:ZIP
更新时间:2024-06-16 19:43:12
JavaScript
live-store With only one API, the mini state manager encapsulated by Redux and react hook can realize global / local state management 只用redux和react hook封装的迷你状态管理器,只用一个api,就能实现全局/局部状态管理 installation To install the stable version: npm install --save-dev live-store That's it! import createHookStore from 'live-store'; const useStore = createHookStore({reducer1,reducer2,...}); 注意: useStore relies on re
【文件预览】:
live-store-master
----.eslintrc.js(2KB)
----webpack.config.js(1KB)
----src()
--------index.js(1KB)
----README.md(2KB)
----dist()
--------index.min.js(3KB)
--------index.js(8KB)
----.editorconfig(232B)
----.gitignore(78B)
----index.js(157B)
----.eslintignore(27B)
----webpack.loader.js(749B)
----package-lock.json(313KB)
----package.json(2KB)