Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 4 years ago

REST Countries API with color theme switcher using React and Tailwind

react, tailwind-css
Byron•2,290
@byronbyron
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


Hello ladies and gentlemen! This is my first React app on here. There's a couple of bits I struggled with so I've just left them out:

  • The border links on the country detail page
  • Having proper slugs for each of the country detail pages e.g. /country/czech-republic

Also, tried looking into using local storage to persist some react state so that it remembers whether dark mode is on or not, but I sacked that off as well.

I'm open to some lovely feedback from all of you. Thank you! 😅

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 Byron'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