没有合适的资源?快使用搜索试试~ 我知道了~
redux-bees:与JSON API交互的一种不错的,简短的声明式方式
共30个文件
js:21个
md:1个
jsx:1个
需积分: 10 0 下载量 4 浏览量
2021-04-13
06:00:49
上传
评论
收藏 70KB ZIP 举报
温馨提示
维护者通缉 我们正在寻找Redux Bees的维护者。 如果你有兴趣写我们在这个问题上。 一种使用Redux管理调用的好方法。 安装 npm install redux-bees --save 或者,如果您使用Yarn: yarn add redux-bees 该库利用发出AJAX请求,因此,如果您的执行环境不具备此功能,请确保添加一个polyfill。 用法 有条件的获取 相关数据加载 检索复合文件 强制重读 缓存失效 服务器端数据加载 定义您的API端点 首先定义API的端点: import { buildApi , get , post , patch , destroy } from 'redux-bees' ; const apiEndpoints = { getPosts : { method : get , path : '/posts' }
资源推荐
资源详情
资源评论
收起资源包目录
redux-bees-master.zip (30个子文件)
redux-bees-master
example
index.js 296B
server.js 976B
createStore.js 430B
api.js 739B
components
App.jsx 730B
.babelrc 209B
package.json 1KB
test
reducers
requests.js 3KB
entities.js 2KB
index.js 97B
applyUrlWithPlaceholders.js 450B
index.html 148B
src
reducers
requests.js 4KB
entities.js 824B
query.js 2KB
index.js 774B
reducer.js 257B
actions.js 185B
buildApi.js 3KB
middleware.js 894B
httpMethods.js 2KB
applyUrlWithPlaceholders.js 590B
request.js 923B
selectors.js 2KB
.gitignore 17B
webpack.config.js 774B
logo.png 19KB
README.md 18KB
maintainers-wanted-red.svg 967B
yarn.lock 116KB
共 30 条
- 1
资源评论
逸格草草
- 粉丝: 28
- 资源: 4594
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功