This one is consuming from the state.
State: 0
This one is consuming from a variable.
Variable: 0
Check the console!
Even if the variable increases, it doesn't render the changes
It also recreates the whole component on each render, meaning the variable is always
0
Even if you try to increase only the variable, React doesn't know anything changed and so it doesn't rerender.