NOTE THIS VIDEO IS WRONG: See Ado Dragičević Comment, pinned to the comment section.
if you simply do: setCount(prevCount= prevCount + 1); it works perfectly and DOM updates as it should.
note: = should be ARROW function, just YouTube does NOT allow arrows, so note the code should be with Arrow Function.