Submitted 8 months ago
Rating Component with hover and click active states built with React
@FG-ABC
Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
I initially used the onMouseEnter and onMouseExit event handlers to handle the active state functionality of the buttons, but I realized that it was better and much easier to just use AND operators and the hover: classifier that comes with tailwind.
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