arrow_backBACK TO DRILLS
Blue Beltimmutability

Object Spread With Nested Property Mutation

A component updates state like this:

REACT_MODULE // 0x42
setPerson({
  ...person
});

Why can mutating person.artwork.city afterward still affect the copied state?

BugDojo
BlogFAQ

© 2026. Carved in code.