All Projects → angelle-sw → Use Axios Client

angelle-sw / Use Axios Client

Licence: mit
Make axios requests in React using hooks.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Use Axios Client

Request
go request, go http client
Stars: ✭ 105 (-16.67%)
Mutual labels:  axios
Vue Api Request
Control your API calls by using an amazing component which supports axios and vue-resource
Stars: ✭ 116 (-7.94%)
Mutual labels:  axios
Axios Vcr
📼 Record and Replay requests in JavaScript
Stars: ✭ 121 (-3.97%)
Mutual labels:  axios
Webchat
A realtime chat for web
Stars: ✭ 106 (-15.87%)
Mutual labels:  axios
Seemusic
Vue 云音乐播放器,网易云音乐API,可听网易云高品质付费歌曲。 Vue music player
Stars: ✭ 112 (-11.11%)
Mutual labels:  axios
React Antd Admin
后台前端管理系统,基于react、typescript、antd、dva及一些特别优秀的开源库实现
Stars: ✭ 117 (-7.14%)
Mutual labels:  axios
Iview Vue Admin
iView vue Admin / An admin management system template
Stars: ✭ 105 (-16.67%)
Mutual labels:  axios
Vue Todos
vue最新实战项目教程,从零开始,一步一个脚印,循序渐进。跟着我一起学习vue吧!
Stars: ✭ 1,659 (+1216.67%)
Mutual labels:  axios
Webpack Seed
🚀 A Multi-Page Application base on webpack and babel. webpack搭建基于ES6,支持模板的多页面项目
Stars: ✭ 113 (-10.32%)
Mutual labels:  axios
React Cloud Music
React 16.8打造精美音乐WebApp
Stars: ✭ 1,722 (+1266.67%)
Mutual labels:  axios
React Nativeish
React Native / React Native Web Boilerplate
Stars: ✭ 106 (-15.87%)
Mutual labels:  axios
Auth Module
auth.nuxtjs.org
Stars: ✭ 1,624 (+1188.89%)
Mutual labels:  axios
Rxios
A RxJS wrapper for axios
Stars: ✭ 119 (-5.56%)
Mutual labels:  axios
Axios Rate Limit
Rate limit for axios
Stars: ✭ 106 (-15.87%)
Mutual labels:  axios
React App Architecture
React.js Isomorphic Web Application Architecture - Learn to build a complete website for a blogging platform like Medium, FreeCodeCamp, MindOrks etc using React.js, Redux, Material-UI, Express.js, Typescript, Webpack, Babel, and Docker. OpenSource project by AfterAcademy
Stars: ✭ 122 (-3.17%)
Mutual labels:  axios
Wepy Plugin Axios
在 wepy 中使用 axios
Stars: ✭ 105 (-16.67%)
Mutual labels:  axios
Reeakt
A modern React boilerplate to awesome web applications
Stars: ✭ 116 (-7.94%)
Mutual labels:  axios
D2 Admin
An elegant dashboard
Stars: ✭ 11,012 (+8639.68%)
Mutual labels:  axios
Vue Visualization
Vue 结合 D3.js 进行数据可视化开发的练手案例
Stars: ✭ 125 (-0.79%)
Mutual labels:  axios
Todolist Frontend Vuejs
Front-end application for Todolist Web application built with Laravel and Vue.js
Stars: ✭ 120 (-4.76%)
Mutual labels:  axios

use-axios-client

Make axios requests in React using hooks.

CircleCI codecov License: MIT

Installation

with npm:

$ npm install use-axios-client

with yarn:

$ yarn add use-axios-client

Example

import { useAxios } from 'use-axios-client';

export default () => {
  const { data, error, loading } = useAxios({
    url: 'https://example/api',
  });

  return (
    <>
      {loading && <div>Loading...</div>}
      {error && <div>{error.message}</div>}
      {data && <div>{data}</div>}
    </>
  );
};

Docs

Contributing

Clone the repository:

$ git clone https://github.com/angelle-sw/use-axios-client

Install dependencies:

$ yarn

Run the example app at http://localhost:8080:

$ cd example
$ yarn
$ yarn start

Run tests using jest:

$ yarn test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].