universal-country-catalog
v1.0.0
Published
Countries list custom npm package
Downloads
2
Maintainers
Readme
Universal-Country-Catalog
Countries list custom npm package
rollup - module bundler
username/ password for https://www.npmjs.com/ (used for library deployed to npm) sethuram.duraisamy [email protected] 2**4@G@#$@#ny
after creating react hook /comp start to test in npm pack locally before deployed in registry
cmd: npm pack
once this cmd executed it will generate .tgz file(check in folder) for npm package
=========================================================================================================
universal-country-catalog
A ReactJS hook to get the country information.
How to use it?
You can use the project in this way:
Install
# with npm
npm install universal-country-catalog
# with yarn
yarn universal-country-catalog
Usage
- Import the package in your app:
import { useCountry } from "universal-country-catalog";
- Get the country information from the hook:
const {loading, error, country} = useCountry('Republic Of India')'