Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 718 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 718 Bytes

React/JSX HTTP API

Simple React http API component

Donate

Add submodule (Fork this repo first)

git submodule add git@github.com:<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