@BBualdo
Posted
Hello, the design looks very nice, good job!
I think the logic of your app is not perfect, because it should let you pick one of 5 ratings and then show the result. At this moment you can pick all ratings and additionally - you can't "unclick" clicked rating. Just write a function that checks if any rating is currently selected and if it is - remove selection and add to currently clicked one. Another approach (which I preffered) was removing selection from all rating elements and adding one to clicked. Good luck!
Marked as helpful
@ayushkanyal
Posted
@BBualdo Hey!
Thank you so much for taking the time to review my solution. I've made changes to my solution, thanks to the tip you provided and even made sure the form is submitted only when a rating is selected. Do check it out and let me know if you think I could have done it in a better way.
Thanks for the tip, regardless.