没有合适的资源?快使用搜索试试~ 我知道了~
reststate-mobx:使用MobX的零配置Web服务客户端
共46个文件
js:18个
md:7个
json:5个
需积分: 6 0 下载量 109 浏览量
2021-05-06
16:36:05
上传
评论
收藏 245KB ZIP 举报
温馨提示
@ reststate / mobx 该软件包已不再维护。 @reststate/mobx允许您通过对象从 Web服务访问数据。 由于JSON:API的强大约定,在大多数情况下,您需要做的就是告诉@reststate/mobx Web服务的基本URL,要访问的资源以及应该进行的设置。 无需人工处理网络请求! 概要 const store = new ResourceStore ( { name : 'widgets' , httpClient : axios . create ( ... ) , } ) ; store . loadAll ( ) . then ( ( ) => { const widgets = store . all ( ) ; console . log ( widgets ) ; } ) ; store . create ( {
资源推荐
资源详情
资源评论
收起资源包目录
reststate-mobx-master.zip (46个子文件)
reststate-mobx-master
example
bin
cypress 80B
package.json 686B
cypress
plugins
index.js 644B
support
index.js 670B
commands.js 841B
integration
examples
smoke.spec.js 144B
fixtures
example.json 154B
.env.sample 87B
src
App.css 468B
index.js 451B
logo.svg 3KB
serviceWorker.js 5KB
App.test.js 248B
App.js 2KB
index.css 380B
.gitignore 301B
cypress.json 3B
public
manifest.json 306B
index.html 2KB
favicon.ico 4KB
README.md 126KB
index.js 91B
docs
reading-data.md 3KB
installation.md 1KB
.vuepress
config.js 661B
styles
palette.styl 23B
writing-data.md 1KB
tutorial.md 12KB
README.md 901B
package.json 1KB
test
Resource.spec.js 5KB
ResourceStore.spec.js 17KB
jest.config.js 143B
src
Resource.js 1KB
ResourceStore.js 6KB
.eslintrc.js 277B
deploy.sh 354B
.gitignore 48B
.circleci
config.yml 877B
.npmrc 19B
.prettierrc.js 67B
README.md 2KB
yarn.lock 441KB
LICENSE.txt 553B
babel.config.js 112B
.node-version 8B
共 46 条
- 1
资源评论
易洪艳
- 粉丝: 33
- 资源: 4503
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功