Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

React | Typescript | TailwindCSS | ContextAPI (theming)

@igomonteiro

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


Used endpoints

  • /all -> home page
  • /alpha/{code} -> details page
  • /alpha?codes={code},{code},{code} -> details page to get border countries name and code (cca2)

Future improvements

  • Componentize the back/border countries button

  • Refact some code (maybe implement Container/Presentational pattern)

  • Implement the API response type/interface

  • The countries select "dropdown" needs to be styled

  • Add loading states

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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