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

REACT.js

MarioLema 140

@MarioLema

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

Community feedback

P
Matt Studdert 13,611

@mattstuddert

Posted

Nice job Mario! The app looks great and functions well 🙌 Good work getting the theme switcher in there too!

When looping through data to return an array of components, I would recommend having a look into using .map() instead of .push(). map() returns a new array and also does not mutate the old array. You'll find that it will clean up the syntax a little bit as well.

How did you get on with the challenge? Did you pick up anything new while going through it?

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