Получите название страны из кода страны, используя ReactjsPhp

Кемеровские программисты php общаются здесь
Anonymous
Получите название страны из кода страны, используя Reactjs

Сообщение Anonymous »


Here is my output when I do console log where you can see country code I highlighted:


Изображение


and using below syntax I am currently displaying country code on frontend:

{address.countryCode ? address.countryCode : ""}

but I want to show country name not country code right now it is AE but I want to show United Arab Emirates.

I have tried to using this library: https://www.npmjs.com/package/country-list. How can I use this to fetch the country name?


Источник: https://stackoverflow.com/questions/780 ... ng-reactjs

Вернуться в «Php»