Submitted almost 4 years agoA solution to the REST Countries API with color theme switcher challenge
First attempt at REST Countries API Challenge using React
react, fetch
@gcarter89

Solution retrospective
This is my first attempt at this challenge.
I think my main aim in the next attempt is to separate out the components even more.
I've deviated from using the v2 API and used the newer version of the REST Countries API instead.
I think there are a few things to improve which I'll add in my future attempts:
- Better error handling when I get a bad request from the API not related to my query.
- Using localstorage to store the dark mode preference.
- Using media queries to load preferences?
Anyway, let me know what you think and what I could do to improve the app!
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Gareth Carter'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