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

Responsive Countries Grid(React, TS, Tanstack Query, Tanstack Router )

@Temi-pinheiro

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


Whew. This project was a lot more difficult that i thought. I approached this project differently than the way i approach almost all my frontend apps in the following ways

  • Little to no state, also no search params, i didnt think persistence was really necessary
  • As little animation as possible. The api returns all the countries at once so in order to keep the app as performant as possible i reduced the amount of animations and even transitions
  • I don't believe in frontend pagination as i dont believe in client-side( CS )intensive work, let the network deal with all that and let the CS be as performant as possible with the least possible time and space complexity we can get

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