没有合适的资源?快使用搜索试试~ 我知道了~
precoil:React的最小状态管理库
共14个文件
js:3个
json:2个
yml:1个
需积分: 0 0 下载量 111 浏览量
2021-02-20
07:04:41
上传
评论
收藏 92KB ZIP 举报
温馨提示
预卷 一个用于React的最小状态管理库。 特征 基于钩子的简约API 无需上下文提供者 小捆装 在上。 安装 npm install precoil 用法 原子 import { atom } from 'precoil' const textState = atom ( ) // textState: Atom<undefined> const textStateWithDefault = atom ( '' ) // textStateWithDefault: Atom<string> const textState = atom < string> ( ) // textState: Atom<string> 原子使用状态 const textState = atom ( ) const Input = ( ) => { const [ text
资源推荐
资源详情
资源评论
收起资源包目录
precoil-main.zip (14个子文件)
precoil-main
rollup.config.js 504B
package.json 2KB
__tests__
index.test.tsx 5KB
.github
workflows
nodejs.yml 502B
jest.config.js 143B
LICENSE 1KB
src
index.ts 4KB
.npmignore 78B
.eslintrc.js 77B
tsconfig.json 230B
.gitignore 2KB
README.md 3KB
yarn.lock 210KB
.editorconfig 130B
共 14 条
- 1
资源评论
cestZOE
- 粉丝: 21
- 资源: 4547
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功