没有合适的资源?快使用搜索试试~ 我知道了~
react-routine:简单的有状态React组件
共22个文件
js:10个
md:3个
gitignore:1个
需积分: 5 0 下载量 11 浏览量
2021-05-19
03:03:17
上传
评论
收藏 77KB ZIP 举报
温馨提示
React例程 一个简单的替代API,用于编写有状态的React组件。 有了它,您可以: 通过按时间顺序执行来简化组件中的数据流 当您期望生命周期事件和回调时明确声明 编写简短易懂的组件 注意: react-routine当前不稳定,可能会有一些重大变化 安装 yarn add react-routine # npm install --save react-routine 示例脚本 import React from 'react' import { routine , setState , componentWillMount , createHandlers } from 'react-routine' const controller = function * ( ) { // Get the initial props const initial = yield c
资源推荐
资源详情
资源评论
收起资源包目录
react-routine-master.zip (22个子文件)
react-routine-master
.gitignore 36B
.flowconfig 18B
package.json 1024B
src
effects.js 2KB
routine.js 4KB
index.js 542B
__tests__
utils.tests.js 1KB
effects.tests.js 2KB
routine.tests.js 3KB
__snapshots__
effects.tests.js.snap 1KB
utils.js 638B
.travis.yml 219B
LICENSE 1KB
CHANGELOG.md 407B
flow-typed
npm
jest_v22.x.x.js 18KB
examples
webpack.config.js 463B
index.js 950B
index.html 75B
README.md 2KB
docs
getting-started.md 5KB
.prettierrc 30B
yarn.lock 225KB
共 22 条
- 1
资源评论
thonxie
- 粉丝: 22
- 资源: 4532
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功