【文件属性】:
文件名称:axios-react:React基于Axios的React的HTTP客户端组件
文件大小:141KB
文件格式:ZIP
更新时间:2021-05-19 22:14:09
react javascript xhr http typescript
Axios React
用于带有子函数回调的React的HTTP客户端组件,可基于在渲染中创建异步请求。
安装:
纱:
$ yarn add axios-react
npm:
$ npm i -S axios-react
现场示例:
用法:
import React from 'react' ;
import Request from 'axios-react' ;
const Demo = ( ) => (
< Request xss=removed>
{ ( { loading , response , error , refetch , networkStatu
【文件预览】:
axios-react-master
----.gitignore(24B)
----package.json(2KB)
----package-lock.json(610KB)
----src()
--------test.ts(149B)
--------index.tsx(2KB)
--------typings.d.ts(468B)
----.travis.yml(39B)
----yarn-error.log(3KB)
----tsconfig.json(634B)
----.github()
--------workflows()
----rollup.config.js(880B)
----README.md(2KB)
----tsconfig.test.json(87B)
----.editorconfig(147B)