@GTG4K
Posted
I've noticed you don't reroute the user to the border countries on click, I've spent too much time trying to figure it out, so just in case you don't know, there is an endpoint in the REST Countries API called Code. https://restcountries.com/v3.1/alpha/{code}
you can just pass the data from border-countries object to this endpoint and it will return the data just like it would when fetching the data with country names.
Marked as helpful
@Kamasah-Dickson
Posted
@GTG4K Thank you so much. I am currently learning how to use react-router and It's my first project with it๐... also relating to the border countries, the data I was getting was an Abbreviation of the border countries and I spent so much time trying to figure out how I could get the end points using the Abbreviations. but in the actual design it wasn't abbreviated it was a full country name.