A ReactJS hook to get the country information.
Liked it? You can show your support with a STAR(⭐).
I am an independent educator who creates meaningful projects to teach programming. You can support me further by sponsoring me on GitHub.
You can use the project in this way:
# with npm
npm install countries-sample
# with yarn
yarn add countries-sample
- 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')'