[ad_1]
Bind takes arguments
this.click.bind(this, 'phone')
click(phone) {
// ...
}
or use es6 arrow functions
onClick={() => this.click('phone')}
[ad_2]
solved How to pass tag id to to onClick function in react?
[ad_1]
Bind takes arguments
this.click.bind(this, 'phone')
click(phone) {
// ...
}
or use es6 arrow functions
onClick={() => this.click('phone')}
[ad_2]
solved How to pass tag id to to onClick function in react?