arrow_backBACK TO DRILLS
Blue Beltimmutability
Updating nested object state correctly
A component stores this state: { name: 'Niki', artwork: { city: 'Hamburg' } } Which approach correctly updates artwork.city while preserving immutability?
A component stores this state: { name: 'Niki', artwork: { city: 'Hamburg' } } Which approach correctly updates artwork.city while preserving immutability?