react-central-state:易于使用的React全局状态

时间:2021-03-18 05:03:08
【文件属性】:
文件名称:react-central-state:易于使用的React全局状态
文件大小:201KB
文件格式:ZIP
更新时间:2021-03-18 05:03:08
JavaScript React中心态 易于使用的React全局状态。与所有组件共享,仅在需要时更新它们。没有减速器,没有动作,没有提供者。 安装 需要React16.8.6或更高版本 npm install --save react-central-state 入门 只需使用CSComponent包装您的组件 import { CSComponent } from 'react-central-state' // or , if you want to operate the state on a non react-component class: class Example extends React . Component { ... } export default CSComponent ( Example ) ; 读取和更新中心状态非常类似于react的原始状态: //Reading fr
【文件预览】:
react-central-state-master
----index.js(9KB)
----docs()
--------stateDiagram.png(35KB)
----package.json(1KB)
----tests()
--------.DS_Store(6KB)
--------todo()
----LICENSE(1KB)
----package-lock.json(122KB)
----src()
--------utils.js(126B)
--------index.js(109B)
--------csstore.js(4KB)
--------cshoc.js(2KB)
--------cshandler.js(1KB)
----.gitignore(47B)
----README.md(3KB)

网友评论