I have recently started working with React and today I came across a topic that got me confused.
The behavior of the synthetic event handlers of react irritates me a bit. I have read that the return values of the event are annulled after calling a callback function.
How should I understand this, and when does this happen in my case?
As you can see in the following Image, the counter gets not incremented.

But it seems that the problem can be solved, as I have illustrated in the following example.

How exactly do I have to imagine the behavior here ?
Many thanks for the explanation