没有合适的资源?快使用搜索试试~ 我知道了~
react-redux-getters:在 React 组件和 Redux 存储之间提供额外的“getter”层
共33个文件
js:24个
json:1个
license:1个
需积分: 19 1 下载量 53 浏览量
2021-08-04
22:29:12
上传
评论
收藏 139KB ZIP 举报
温馨提示
react-redux-getters 在 React 组件和 Redux 存储之间提供额外的“getter”层。 getter 返回存储中的数据(如果存在),否则返回存根并调用 fetch 操作。 所以商店是自动填充的。 安装 yarn add react-redux-getters 用法 创建吸气剂 import { createGetter } from 'react-redux-getters' import { updateSubjects , fetchSubjects } from 'actions/subjects' export const getSubjects = createGetter ( { stateSelector : ( state ) => state . subjects , asyncFetcher : ( ) => fetchSubj
资源推荐
资源详情
资源评论
收起资源包目录
react-redux-getters-master.zip (33个子文件)
react-redux-getters-master
.eslintrc 600B
.github
workflows
publish.yml 357B
yarn.lock 316KB
webpack.config.js 613B
src
composeGetters.js 377B
statuses.js 99B
createGetter.js 862B
connectGetters.js 6KB
isGetter.js 165B
actions.js 180B
index.js 160B
gettersMiddleware.js 271B
.babelrc 140B
examples
containers
Teachers.js 539B
AllSubjects.js 561B
SubjectTeachers.js 666B
HumanitarianSubjects.js 608B
selectors
teachers.js 345B
subjectTeachers.js 452B
subjects.js 930B
actions
teachers.js 433B
subjects.js 639B
App.js 779B
configureStore.js 501B
index.js 206B
reducers
teachers.js 298B
index.js 54B
subjects.js 298B
LICENSE 1KB
README.md 6KB
.editorconfig 267B
.gitignore 404B
package.json 2KB
共 33 条
- 1
资源评论
天驱蚊香
- 粉丝: 27
- 资源: 4554
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功