A ReactJS hook to get the country information.
Liked it? You can show your support with a STAR(⭐).
You can use the project in this way:
# with npm
npm install tapas-countries
# with yarn
yarn add tapas-countries
- 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')'