JavaScript React Basics Understanding State Bind Event Handlers to Components

Paul Messmer
Paul Messmer
15,022 Points

why ()

On the second redo of the onClick guil used incrementScore() On the first one he mentioned that this calls it upon rendering as well and not to. I am just wondering why does it not with the arrow function.

1 Answer

arrow function are for declaring, not for calling.