Submitted almost 2 years ago
Interactive rating component using flexbox and javascript
@MDelforge
Design comparison
SolutionDesign
Solution retrospective
4th Project
Any feedback about this is welcome ! 👌
Thank You ! 😁😁😁
Community feedback
- @DXXDLYPosted almost 2 years ago
Hello!!!
I can suggest a few improvements
1.Move all dom elements to the top of the code to have better visibility on all elements.
2.Make function names more natural init() ---> handleRatingClick()
3.I also replaced the rating variable with a number, as it is a more natural type for the rating value.
4.Also not recommend properties for the <html> tag.
Hope you find this feedback helpful!! 😉
Marked as helpful0
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