未说明:状态如此简单,不用说

时间:2021-02-05 16:09:05
【文件属性】:
文件名称:未说明:状态如此简单,不用说
文件大小:88KB
文件格式:ZIP
更新时间:2021-02-05 16:09:05
react management state ReactJavaScript 未说明 状态如此简单,不用说 :waving_hand: 安装 yarn add unstated 例 // @flow import React from ' react ' ; import { render } from ' react-dom ' ; import { Provider , Subscribe , Container } from ' unstated ' ; type CounterState = { count : number }; class CounterContainer extends Container < CounterState> { state = {
【文件预览】:
unstated-master
----.gitignore(43B)
----tsconfig.json(310B)
----README.md(13KB)
----flow-typed()
--------npm()
----rollup.config.js(382B)
----.prettierrc(26B)
----logo.png(19KB)
----LICENSE(1KB)
----__tests__()
--------unstated.js(2KB)
--------unstated.tsx(2KB)
----.babelrc.js(435B)
----package.json(2KB)
----src()
--------unstated.js(4KB)
--------unstated.d.ts(822B)
----.babelrc(33B)
----.flowconfig(58B)
----example()
--------simple.js(812B)
--------complex.js(1KB)
--------index.html(473B)
--------shared.js(889B)
----.travis.yml(183B)
----yarn.lock(191KB)
----logo.svg(2KB)

网友评论