You can list countries
and languages
npm i use-countries --save
yarn add use-countries
import useCountries from "use-countries";
const {
countries,
languages,
country,
setCountry,
language,
setLanguage
} = useCountries();
<select onChange={handleCountryChange}>
{countries.map(item => (
<option value={item.code}>{item.name}</option>
))}
</select>
{
"code": "AD",
"name": "Andorra",
"native": "Andorra",
"phone": "376",
"continent": "EU",
"capital": "Andorra la Vella",
"currency": "EUR",
"languages": ["ca"],
"emoji": "🇦🇩",
"emojiU": "U+1F1E6 U+1F1E9"
}
{ "code": "AA", "name": "Afar", "native": "Afar" }