arrow_backBACK TO DRILLS
Blue Beltimmutability
Shallow spread copy limitation
A component updates state like this: setPerson({ ...person }); Why can mutating person.artwork.city afterward still affect the copied state?
A component updates state like this: setPerson({ ...person }); Why can mutating person.artwork.city afterward still affect the copied state?