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 page in React, working with API and redux toolkit

Marcin 180

@marcin10lw

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


Hi there! I made this countries browser page. As always it was excellent learning opportunity. Working with suggested API was a tricky task. Let me know what you think!

Community feedback

@samcyn

Posted

This is so good. However, I recommend a few things which are by the way unnecessary. Looking at the code, I feel using redux is an over kill, Context API can be a good fit. Also saving the endpoint -"https://restcountries.com/v3.1/all" as env variables will be a good thing. And maybe adding some tests (unit test). Nice work mate.

Marked as helpful

1

Marcin 180

@marcin10lw

Posted

@samcyn Great advice! I created a context for theme and reduced amount of code

0

@samcyn

Posted

Awesome mate. @marcin10lw

0

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