Lifecycle!
Because of Strict Mode, the code is initially ran twice.
If you try to add
stateto the dependency array, since the effects are mutating the same
state, then you end up with an infinite recursion and it will break the page.
initial state