Mutable or immutable global state pattern in React with hooks? | Dark Hacker News