Why shallow copying nested state objects in React can cause bugs?Deep copy your state object whenever you want to change its nested properties.4 min read·randomness.hashnode.devMay 14, 2022