Skip to content

dig22/React-HTTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

React/JSX HTTP API

Simple React http API component

Donate

Add submodule (Fork this repo first)

git submodule add [email protected]:<your_username>/React-http-API.git ./src/services/api/

Import in App.js or App.jsx

import Api from './services/api/api';
...

Usage

var get = await Api.get('get_address' , ['param1','param2' ...] );
var post = await Api.post('post_address' , {data1 :'...' , data2 :'...'} );

Donation

If this project helped, you can always buy me a cup of coffee :)

paypal

About

Simple React http API component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published