Interactive rating component solution

Please log in to post a comment
Log in with GitHubCommunity feedback
- @Akinyemi4
This is very nice and I just finished same challenge a day ago so I decided to check other solutions to gain more insights into the logic they implemented in their code (mostly, the JavaScript). Well done.
Though, I have a suggestion. I would suggest you use an if statement to check if a number(from the rates) has been clicked before the submit button would change the cards. So if someone doesn't choose any rating, nothing should happen.
You can check for that in future challenges. Great work. I hope you find this helpful.
Marked as helpful
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