Submitted almost 2 years agoA solution to the REST Countries API with color theme switcher challenge
Country-info website
react, react-router, sass/scss, tailwind-css, pwa
@adex-hub

Solution retrospective
What challenges did you encounter, and how did you overcome them?
Some countries did not have borders. Hence as I attempted entering the route of countries with borders, an error occurred I fixed it by doing this.
Border Countries:
{country.borders === undefined && (
{country.name.common} has no border countries
)}
{country.borders?.map((border, i) => (
{border}
))}
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Adeola's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord