Latest solutions
Responsive IP Address Tracker, built with IPify and LeafletJS
#fetch#accessibilitySubmitted over 2 years agoResponsive page with API, built with Flexbox, Grid and theme toggler
#accessibility#react#fetchSubmitted over 2 years agoMobile-first solution using Flexbox and async JavaScript
#semantic-ui#accessibilitySubmitted over 2 years ago
Latest comments
- @ValenssSubmitted over 2 years ago@jelenkoo10Posted over 2 years ago
I've had a similar problem when I tried to display the border countries, so I implemented a function which receives a country code, goes through all countries data and returns a name of the country whose country code is equal to the one forwarded. Here it is: function searchCountry(code) { let name for (let i = 0; i < countries.length; i++) { if (countries[i].cca3 == code) { name = countries[i].name.common } } return name } You can use this function to display the full name of the country in your Link, rather than only the first three letters. Hope this helps, happy coding! :)
Marked as helpful1