There was an error while loading. Please reload this page.
1 parent 67d023f commit 183bf52Copy full SHA for 183bf52
README.md
@@ -603,6 +603,13 @@
603
```jsx harmony
604
<button onClick={this.handleClick.bind(this, id)} />
605
```
606
+ Apart from these two approaches, you can also pass arguments to a function which is defined as array function
607
+ ```jsx harmony
608
+ <button onClick={this.handleClick(id)} />
609
+ handleClick = (id) => () => {
610
+ console.log("Hello, your ticket number is", id)
611
+ };
612
+ ```
613
614
16. ### What are synthetic events in React?
615
0 commit comments