<button onClick="this.handleClick">
handleClick(event){
console.log(event.target)
}
Why does the event argument in the handleClick function work without passing it as an argument? Does every event handler by defult create an event parameter?
<button onClick="this.handleClick">
handleClick(event){
console.log(event.target)
}
Why does the event argument in the handleClick function work without passing it as an argument? Does every event handler by defult create an event parameter?