Stephanie
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/handling-events.md
|
|
@ -130,7 +130,7 @@ class LoggingButton extends React.Component { |
|
|
|
render() { |
|
|
|
// This syntax ensures `this` is bound within handleClick |
|
|
|
return ( |
|
|
|
<button onClick={(e) => this.handleClick(e)}> |
|
|
|
<button onClick={() => this.handleClick()}> |
|
|
|
Click me |
|
|
|
</button> |
|
|
|
); |
|
|
|