Open Wilmerj opened 6 years ago
I'm integrate this library into my proyect but when I select one star don't change of color. my code <ReactStars count={5} onChange={ratingChangedServicio} size={34} color1={'#eee'} color2={'#ffe900'} />
<ReactStars count={5} onChange={ratingChangedServicio} size={34} color1={'#eee'} color2={'#ffe900'} />
method ratingChangedServicio
const ratingChangedServicio = (newRating) => { this.setState({servicio : newRating}); }
I'm integrate this library into my proyect but when I select one star don't change of color. my code
<ReactStars count={5} onChange={ratingChangedServicio} size={34} color1={'#eee'} color2={'#ffe900'} />
method ratingChangedServicio
const ratingChangedServicio = (newRating) => { this.setState({servicio : newRating}); }