viet_share

Demo share component.

Usage no npm install needed!

<script type="module">
  import vietShare from 'https://cdn.skypack.dev/viet_share';
</script>

README

Share Component

Component share API services with React & React Native.

Guide

Step 1: Cd into your project.

Step 2: Install node modules.

yarn add git+https://bitbucket.org/Zengratul/share.git

Or

yarn add viet_share

Step 3: Consume API.

  • Import from node_modules & use.
import Share from '@Viet/Share' // from git
// import Share from 'viet_share' // from npm

testApi = async () => {
let a = await Share.api().getPokemon();
return console.log(a);
};

testApiGraphQL = async () => {
let a = await Share.apiGraphQL().getStarWar();
return console.log(a);
};