adarsh0329-tapas-countries
v5.2.0
Published
This is an NPM to fetch you the country details
Downloads
8
Readme
tapas-countries
A ReactJS hook to get the country information.
🫶 Support
Liked it? You can show your support with a STAR(⭐).
Many Thanks to all the Stargazers
who has supported this project with stars(⭐)
Sponsor My Work
I am an independent educator who creates meaningful projects to teach programming. You can support me further by sponsoring me on GitHub.
How to use it?
You can use the project in this way:
Install
# with npm
npm install tapas-countries
# with yarn
yarn add tapas-countries
Usage
- Import the package in your app:
import {useCountry} from 'tapas-countries';
- Get the country information from the hook:
const {loading, error, country} = useCountry('Republic Of India')'