onclick arrow function javascript

Solutions on MaxInterview for onclick arrow function javascript by the best coders in the world

showing results for - "onclick arrow function javascript"
Abril
26 Jun 2019
1onClick={(e) => this.goToStore(e)}
2
Ela
11 Jan 2020
1class demo extends React.component {
2  goToStore(event) {
3    console.log(this)
4  }
5
6  render() {
7    <button onClick={(e) => this.goToStore(e)}>test</button>
8  }
9}
10