Request path contains unescaped characters
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

REST Countries API with React JS & styled-components

Hoe Hooi Yan• 285

@hoehooiyan

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


I learned a ton from this challenge!!

The code is messy... I need to refactor it later LOL.

I also need to implement the feature to click outside to close the filter by region.

I have one question here.

How do I make the theme toggling in sync with the different routes?

Say, when the theme is dark mode first, when I click on a country it will take me to https://example.com/italy, and then I toggle the theme here to light mode.

Now, I click the back button to return home page. The home page is still in dark mode.

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