REST countries API with color theme switcher using React
Design comparison
Solution retrospective
I was initially planning to practice Redux but it seemed like an overkill for this project so I just went with the useState
hook. It was a very fun project and I got to practice with many of the important React concepts, including react router and more. For the border countries, I could only find the codes for the countries so in order to avoid fetching data just for the names, I used reduce
and console.log
-ed an object with codes as keys and names as values, then just copy-pasted the object into a separate file and used it. Is there any other way around it? Feel free to throw in your feedbacks and suggestions on how I can improve further. Thanks in advance.
Community feedback
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