@RobVermeer
Posted
Looking good Adarsh! Love the smooth animation =)
Some feedback about the semantic meaning of your HTML, I think it's better to use a form as wrapper for the component and use radio buttons for the different rating options. This way you can have a submit button that submits the form, which will result in simpler JS (only a submit event listener is needed).
A bonus is that you then can make the radio group required, so the browser can do the validation for you.
This also makes the component accessible for screen-readers and for users navigating with keyboard =)
Marked as helpful