Responsive interactive comment section using React and localstorage
Design comparison
Solution retrospective
Happy overall, but I feel the logic in my jsx files could be improved to reduce the amount of code. Any suggestions?
As always any other suggestions, especially regarding accessibility, are welcome. Thanks, and enjoy tinkering with my project!
Community feedback
- @denieldenPosted over 2 years ago
Hey Alex, congratulations on completing the challenge! You did a great job 😉
Let me give you 2 little tips for optimizing your code:
- i can comment also with empty comment or with blanks, add a control... The
trim()
method can help you -> read here - instead of using
px or %
use relative units of measurement likerem
-> read here
Hope this help! Happy coding 😁
Marked as helpful1@CallMe-ALPosted over 2 years ago@denielden Thank you for the kind words and great feedback! Sorry for my very late response too haha.
The trim() recommendation was very helpful, I somehow never thought of that! I also just learned of the benefits of using rem, em, etc. from following Kevin Powell's Space Tourism tutorial linked with this site, too. I'll be sure to use those in my future projects!
Thanks again, hope to see you more around Frontend Mentor!!
1 - i can comment also with empty comment or with blanks, add a control... The
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