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 sariot-countries
# with yarn
yarn add sariot-countries
- Import the package in your app:
import {useCountry} from 'sariot-countries';
- Get the country information from the hook:
const {loading, error, country} = useCountry('Bangladesh')'