First attempt at REST Countries API Challenge using React
Design comparison
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!
Community feedback
- @slothmast3rPosted over 2 years ago
Hey! Great work! I have to say your project is super fast and smooth. What I want to say that you need to work on your error handling for example Antarctica doesnt show up at all because of some undefined keys. Good luck!
1@gcarter89Posted over 2 years ago@slothmast3r Hey! Thank you! And also, thanks for the heads up on the error handling. I've added some new checks for some of the edge cases like Antarctica. But I'll be on the lookout for other bugs!
Have a great day!
0
Please log in to post a comment
Log in with GitHubJoin 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