没有合适的资源?快使用搜索试试~ 我知道了~
t-redux:react-redux模式的最小实现
共23个文件
js:13个
json:2个
jsx:2个
需积分: 5 0 下载量 79 浏览量
2021-05-11
02:51:12
上传
评论
收藏 225KB ZIP 举报
温馨提示
T-Redux 这是一个实现Redux模式的迷你库。 如果您不需要redux框架提供的所有功能,则很有用。 如何使用它 安装库 npm install t-redux 导入文件 import {withState, dispatcher, buildReducer} from 't-redux' 你得到的是 一个高阶组件来包装您的React组件 动作调度员 建立减速器的实用程序功能 一个文件的例子 // import the needed modules import { withState , dispatcher , buildReducer } from 't-redux' // this is a PORC (Plain Old React Component) class MyCounter extends React . Component { con
资源推荐
资源详情
资源评论
收起资源包目录
t-redux-master.zip (23个子文件)
t-redux-master
.babelrc 36B
.circleci
config.yml 813B
lib
buildReducer.js 497B
withState.js 1KB
dispatcher.js 398B
index.js 163B
demo
index.html 177B
webpack.config.js 520B
app.js 753KB
App.jsx 784B
__tests__
dispatcher.test.js 520B
buildReducer.test.js 374B
__snapshots__
withState.test.js.snap 392B
fake
TestComponent.jsx 155B
withState.test.js 1KB
README.md 3KB
dist
buildReducer.js 827B
withState.js 4KB
dispatcher.js 575B
index.js 690B
.gitignore 658B
package-lock.json 239KB
package.json 1KB
共 23 条
- 1
资源评论
单身的小孩
- 粉丝: 20
- 资源: 4622
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功