Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I'm proud that I succeeded to build this component using mostly Tailwind CSS. Next time I would use less classes from Tailwind and do more styling using Vanilla CSS.
What challenges did you encounter, and how did you overcome them?The challenging part was to select one button at a time. The solution was to check if there is an existing selected button whenever the user chooses another rating option and set its state to false.
Data attributes for button state were the highlight of this challenge 🌟
What specific areas of your project would you like help with?I would like to know how can I refactor my JavaScript code to be more readable and efficient.
Community feedback
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