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

Where in the World with React

react, react-router
Catalin Banici•260
@CatalinBanici
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!

This is my solution for REST Countries API with color theme switcher challenge! For extra practice I tried implementing also a sorting feature. However is not working exactly as I intended. For example, on page load, when I sort the countries by name or anything else, and then I want to filter them by region, the sorting state resets itself, and does not stick with the filtering, only if I sort it again. I'm not sure if I went on the right way of doing it, maybe someone can help me, I would much appreciate it, many thanks!

Also, any other bug reports and feedback is much welcome! Thanks!

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 Catalin Banici'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
Frontend Mentor logo

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

Frontend Mentor

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

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