angelle-sw / Use Axios Client
Licence: mit
Make axios requests in React using hooks.
Stars: ✭ 126
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Use Axios Client
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
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
Webpack Seed
🚀 A Multi-Page Application base on webpack and babel. webpack搭建基于ES6,支持模板的多页面项目
Stars: ✭ 113 (-10.32%)
Mutual labels: axios
React Nativeish
React Native / React Native Web Boilerplate
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
Reeakt
A modern React boilerplate to awesome web applications
Stars: ✭ 116 (-7.94%)
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
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].