REST Countries API Using React

Solution retrospective
Had fun doing this challenge, I am still at the beginning journey with React so any suggestion or feedback is appreciated!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @lipe11
Hi, nice solution!. I'm currently working on this project myself.
I think your react code is very clean, if you're just starting, you're definitely on the right track.. And adding the map was a nice touch too!
Just a couple of small suggestions:
-
consider putting your fetch functions into a module, and import them from your components.
-
instead of using the regex for the comma separated list, you could use
array.join(', ')
Marked as helpful -
- @Duyen-codes
Nice job on completing this one! I’ve just started learning react and this project is on my goal list too.
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