Suppose a component has an event handler:

onClick={this.handleClick} 

The handler function always takes a "synthetic" event as input.

 handleClick(e){ //... } 

Question: How can I pass my argument to a handler and refer to the argument in it (is there such a possibility)?

    1 answer 1

    Alternatively, use .bind :

     onClick={this.handleClick.bind(this, ev)}