Closed
Description
This issue was originally reported by @StokeMasterJack via facebook/react/issues/9685
A similar issue was reported by @Frazer via facebook/react/issues/8065
Text of original issue #9685
Inside a loop it is common to want to pass a param to an event handler:
<button onClick={(event) => this.deleteRow(23)}>Delete Row</button>
<button onClick={this.deleteRow.bind(this,23)}>Delete Row</button>
That would be a good thing to add to this doc page:
https://facebook.github.io/react/docs/handling-events.html
Also, how to pass args without triggering a re-render in the child component (i.e. creating a new function every time).