Design comparison
Solution retrospective
👾 Hello, Frontend Mentor coding community . This is my solution for the Interactive rating component .
Feel free to leave any feedback and help me improve my solution or make the code clean!✨❤️
I would appreciate any feedback, thank you in advance!
Community feedback
- @pradeeps4iniPosted over 2 years ago
@AdarshRai0, how are you, buddy?
You've done a great job at converting the design to code.
When i select a rating, the selected rating persist after i refresh the page. If it's not how you coded it to be; then after the user has submitted the rating, you could iterate over all inputs and turn their
checked
property tofalse
.I wrote a small codepen demo that demonstrate this. Have a look and read/modify the code and i hope its helpful to you. Please feel free to reach me, if any improvement can be made to codepen or you need help understanding something. https://codepen.io/pradeeps4ini/pen/OJvZGev.
1
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