Design comparison
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}
))}
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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