Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phongnhat19 opened this issue Dec 19, 2017 · 2 comments
Open

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

phongnhat19 opened this issue Dec 19, 2017 · 2 comments

Comments

@phongnhat19
Copy link

phongnhat19 commented Dec 19, 2017

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 ?

@phongnhat19 phongnhat19 changed the title Get the e.target in onChange handler Get the e.target or pass another param into onChange handler Dec 19, 2017
@anderconal
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants