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?”

BugDojo
BlogFAQ

© 2026. Carved in code.