arrow_backBACK TO DRILLS
Black Beltimmutability
Shared Object Reference Between Two Variables
Two different objects both reference the same nested object:
REACT_MODULE // 0x42
const artwork = { city: 'Hamburg' };
const objA = { artwork };
const objB = { artwork };If React state later mutates objB.artwork.city, what happens?