Responsive Interactive Rating Component
Design comparison
Community feedback
- @msiessePosted about 2 years ago
Hi Vishwajeet. Nice job completing this challenge. I’ve got a few suggestions for you to have a better code:
-
I see that you use two times forEach to check if a number has been selected or not. You don’t really need it if you use properly the
<form>
tag with<input type=« button »>
. The logic will be handled automatically, you can check Form and Input -
Rather than having a function
change
that will replace everything, you can have two components with approximately same styling and play with the CSS propertydisplay
. First the rating component will be displayed, then Thank you component -
Maybe make the component bigger, it’s a bit too small at first sight
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