You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reference of a function (no brakets, event submitted automatically, this would need binding)
arrow function (with brakets, event needs to be passed explicit, no this problem)
<!-- function reference --><buttononClick={activateLasers}>Fire!</button><!-- arrow function with passing event --><buttononClick={event => { activateLasers(event)} }</button>activateLasers}>Fire!</button>