n49 / react-stars

A simple star rating component for your React projects :star:
http://developers.n49.com/react-stars/
218 stars 82 forks source link

Get the e.target or pass another param into onChange handler #42

Open phongnhat19 opened 6 years ago

phongnhat19 commented 6 years ago

I've render a list of voting of item like this <ReactStars id={index} className="star-vote" onChange={this.feedBack} size={35} half={false} count={5} value={item.VoteAvg} color1={'gray'} color2={'#009CDE'} edit={true}/> Now I need to set and get the id for ReactStars component, or is there any other way that I can pass another param to onChange handler ?

anderconal commented 6 years ago

I'm in same situation. I'll see if I can separate a little bit time to solve this issue and send a PR.

SerxoLaxe commented 2 years ago

Same here, struggling to change the component attributes on state change.