Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 5 years ago

REST countries API using React

Camilo Rodriguez•120
@CamiloRodriguezG
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


If you think there is something that I could make better, let me know.

There is a bug, you have to click the buttons twice (except te back button), I'm not pretty sure why is that I think is for the componentDidMount(), this is my first project with react so there are tools i don't use very well, if you know wich's the problem, i am open to feedbacks. I'm a begginer yet :)

Another thing, i have no idea how to avoid when te user types something in the input that doesn't receives any answer from the API, so then the page get down.

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 Camilo Rodriguez'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