Skip to content

Commit 7611c77

Browse files
Remove event from arrow function example (#1542)
1 parent d58c947 commit 7611c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/handling-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class LoggingButton extends React.Component {
130130
render() {
131131
// This syntax ensures `this` is bound within handleClick
132132
return (
133-
<button onClick={(e) => this.handleClick(e)}>
133+
<button onClick={() => this.handleClick()}>
134134
Click me
135135
</button>
136136
);

0 commit comments

Comments
 (0)