arrow_backBACK TO DRILLS
White Belt - EasyeventsPREMIUM
Inline arrow event handlers
A button uses an inline arrow function as its click handler:
//REACT_MODULE
<button onClick={() => alert('Clicked!')}>Why does this work correctly?