Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

REST COUNTRIES APP with theme switcher

react, react-router, sass/scss
Anthony Rosman•510
@D3press3dd
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


Hi guys hope you're doing good, i just want to know how you guys manage the way to receive the information of the api when the properties are dynamic, i mean in this case some countries can have "borders countries" or not, so if i do something and a country return an undefined property my app just crash, i manage the way to solve but i dont know if they are good practices, so if you have any recommendations to improve that way, will be very grateful, happy coding.

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 Anthony Rosman'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