browser
Simulate why React state updates that depend on previous state should use updater functions.