Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

rest-countries-api_React/React-router

react-router, react
Maca•630
@Maacaa0
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


Great challenge to learn and practice react-router.

I'd so much appreciate some feedback from a React-professionals. :D

  • I feel like the project might be optimised better.

  • I tried implementing loading screen until fetch is complete but I think it's not working properly.

  • Does lazy attribute on img tag in this scenario work or do I have to use different approach to get better performance?

  • My addblocker keeps blocking Andorras flag because of the name "ad.svg". All I did was console.log an error message and set fallback error image. I don't think there is much else I can do about it. I wonder if you are getting error aswell.

Pixel perfect styling was not my primary goal so some things might be off.

I am open for discussion :D Thank you <3

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 Maca'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