Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

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

animation, react, tailwind-css, typescript, motion
Temitope Pinheiro•260
@Temi-pinheiro
A solution to the REST Countries API with color theme switcher challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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
Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Temitope Pinheiro'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License