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