star-based-rating
Install
npm install star-based-rating --save
Demo
Props
I have kept minimal configurations. Less configurations Less confusions. You can edit them as well. Also you can show previous stars
<StarBasedRating onSelectRatingStars=thisselectStarHandler totalStars=10 previousStarsToDisplay=3 /> // onSelectRatingStars: Method that you want to run after selecting// totalStars: Total Number of stars you want to display// previousStarsToDisplay: Provide existing stars already
How simple is this !! 😊
Example
;; Component { /* totalStarsSelected param is giving you selected number of stars and what you want to do with it */ } { return <div> <StarBasedRating onSelectRatingStars=thisselectStarHandler totalStars=10 previousStarsToDisplay=3 /> </div> } ReactDOM;
MIT Licensed
😃