javascript - React onClick bind(), where is the click event? -


i have element onclick={this.didselectreview.bind(this,review)}.

in didselectreview-function stop click event calling. e.stoppropagation(). how can click event e?

what .bind() prepends default arguments in call. have original arguments right there in function:

this.didselectreview = function(review,clickevent){     clickevent.stoppropagation();  } 

https://developer.mozilla.org/en-us/docs/web/javascript/reference/global_objects/function/bind


Comments