interactive-rating-component-main

Solution retrospective
I'm proud of the seamless interaction when users select a rating and submit it. Implementing event listeners and feedback logic using JavaScript to show different states (rating selection and confirmation) felt rewarding.
What challenges did you encounter, and how did you overcome them?-
Challenge: Managing: the selected rating and ensuring it persists when the user submits the form was initially tricky. I had to ensure the component properly switched between the rating selection view and the confirmation view.
-
Solution: I used JavaScript to keep track of the rating selected by the user and update the DOM dynamically based on user interaction. A simple variable was enough to store the rating, and I used event listeners to change the UI once the rating was submitted.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on HooriaSaeeda'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