Browse Source

Wordsmithing

main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
7f8d084a2c
  1. 2
      content/docs/handling-events.md

2
content/docs/handling-events.md

@ -142,7 +142,7 @@ The problem with this syntax is that a different callback is created each time t
## Passing arguments to event handlers
Inside a loop it is common to want to pass a param to an event handler. For example if `i` is the row id:
Inside a loop it is common to want to pass a param to an event handler. For example, if `i` is the row id, either of the following would work:
```js
<button onClick={() => this.deleteRow(i)}>Delete Row</button>

Loading…
Cancel
Save