Design comparison
SolutionDesign
Community feedback
- @denieldenPosted over 2 years ago
Hey Kofi, congratulations on completing the challenge! You did a great job 😉
Let me give you some little tips for optimizing your code:
- add
main
tag and wrap the content of page for improve the Accessibility - add descriptive text in the
alt
attribute of the images - remove all unnecessary code, the less you write the better as well as being clearer: for example the
div
container without class - use react Fragment instead of a unnecessary
div
for the return of component read here. This way you don't add unnecessary additional nodes to the DOM:
const ComponentWithOutFragment = () => { return ( <div> {more content and child} <div> ); } const ComponentWithFragment = () => { return ( <> {more content and child} <> ); }
- if I click on the upvote
button
I can increase it to infinity and not just by 1 point. add a control - i can comment also with empty comment or with blanks, add a control... The
trim()
method can help you -> read here
Hope this help! Happy coding 😁
Marked as helpful2@kofinarteyPosted over 2 years ago@denielden Glad you could make time to go through this project. I appreciate your input and will do well to implement the enhancements
1 - add
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