An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
April 1, 2022 10:47 pm GMT
Original Link: https://dev.to/asherscott/fun-interactivity-using-react-stars-2n7n
Fun interactivity using react-stars!
While working on my Phase-2 Flatiron Project, I stumbled upon this super useful react component called react-stars.
This is an incredibly straightforward, flexible, and powerful component used for star rating systems. Check out the demo here!
Don't like boring old stars?
-stars allows you to completely customize the rating characters, using either:
A string
;
Or an html element!
Don't be afraid to get creative with it!
But lest you think this can only be used for ratings...
Mini Games!
Here's a simple game I put together using react-stars
Checkout the github page for more information, including a README on how to begin using react-stars to take your react project to the new level!
Original Link: https://dev.to/asherscott/fun-interactivity-using-react-stars-2n7n
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To