React Hooks 全局状态管理库

React Hooks 全局状态管理库,无需依赖 Context API,提供简洁易用的全局状态管理方案。

特性:

  • 浅层状态吸收器和设定器优化,仅对状态对象进行一层深度封装,提高性能。
  • TypeScript 类型定义,提供完整的类型推断,增强代码可靠性。
  • 支持创建自定义 Hooks,扩展全局状态管理功能。
  • 兼容 Redux 中间件,可与 Redux 生态系统中的部分库协同工作。
  • 支持 Redux DevTools Extension,方便调试全局状态。
  • 实验性支持并发模式,适应 React 未来发展趋势。
  • 提供 useGlobalStateProvider 用于非 React Context 环境下的状态管理。

安装

npm install react-hooks-global-state
folder
react-hooks-global-state:具有Hooks API且无上下文API的React的简单全局状态 预估大小:141个文件
file
.eslintrc.json 2KB
file
.gitignore 28B
file
jest-puppeteer.config.js 144B
file
package.json 5KB
file
webpack.config.js 1KB
file
index.html 130B
file
package.json 668B
file
index.html 130B
file
index.html 130B
file
index.html 130B
file
index.html 130B
file
index.html 130B
file
index.html 130B
file
index.js 1001B
file
index.html 130B
file
index.html 130B
file
index.html 130B
file
index.html 130B
file
index.html 130B
file
index.html 130B
zip 文件大小:277.05KB