Bind takes arguments
this.click.bind(this, 'phone')
click(phone) {
// ...
}
or use es6 arrow functions
onClick={() => this.click('phone')}
Bind takes arguments
this.click.bind(this, 'phone')
click(phone) {
// ...
}
or use es6 arrow functions
onClick={() => this.click('phone')}