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 ?
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 ?