Design comparison
Solution retrospective
Had fun doing this challenge, I am still at the beginning journey with React so any suggestion or feedback is appreciated!
Community feedback
- @lipe11Posted over 2 years ago
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 helpful1@lipe11Posted over 2 years agosorry, I think the regex wasn't for the comma separated list, but for the population... in that case
number.toLocaleString()
does the trick.Marked as helpful0@redshift14Posted over 2 years ago@lipe11 Thanks a lot for your feedback. I think putting fetch functions in a separate module is a good idea, and you are right using toLocaleString() is better than using regex I will modify it too.
0 -
- @Duyen-codesPosted over 2 years ago
Nice job on completing this one! I’ve just started learning react and this project is on my goal list too.
1@redshift14Posted over 2 years ago@Duyen-codes Thanks for your feedback, and good luck for you
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