Browse Source

Remove event from arrow function example (#1542)

main
Stephanie 5 years ago
committed by GitHub
parent
commit
7611c776fc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/handling-events.md

2
content/docs/handling-events.md

@ -130,7 +130,7 @@ class LoggingButton extends React.Component {
render() { render() {
// This syntax ensures `this` is bound within handleClick // This syntax ensures `this` is bound within handleClick
return ( return (
<button onClick={(e) => this.handleClick(e)}> <button onClick={() => this.handleClick()}>
Click me Click me
</button> </button>
); );

Loading…
Cancel
Save