Interactive rating component using vanilla CSS and JS

Solution retrospective
I was able to solve it within 2 hours, I thought it would take a lot of time since this is my second Js challenge.
What challenges did you encounter, and how did you overcome them?I didn't understand if I should use form inputs like radio buttons for numbers or actual buttons inside li or just li, which I have done. Apart from that, I struggled a little with button switching, as other buttons should remove the styling if one is in an active state. I had to ask Chat GPT for the hint.
What specific areas of your project would you like help with?I will go ahead and refactor the code and add keyboard navigation soon. Currently, focusing on building logic and integrating JS with HTML and CSS. I struggled to do that since I have only worked on HTML and CSS. Open for feedback. I'd like it if you guys could tell me the industry standard way to approach things. Cheers!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Bhavik Thakur's solution.
Join 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