Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onclick arrow function javascript

class demo extends React.component {
  goToStore(event) {
    console.log(this)
  }

  render() {
    <button onClick={(e) => this.goToStore(e)}>test</button>
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onclick #arrow #function #javascript
ADD COMMENT
Topic
Name
5+2 =