Reactjs Es6, .map Function Not Triggering Onclick
Reactjs, ES6 issue: Very simple onclick event in a .map function not working. When I inspect it, this in handleclick function represent _this5 and this in .map bind represents _thi
Solution 1:
Right now you are calling the function and using the return value as the onClick
. You just want to pass the function reference like this:
<Row className="show-grid" onClick={this.handleClick}>
Post a Comment for "Reactjs Es6, .map Function Not Triggering Onclick"