arrow_backBACK TO DRILLS
White Beltimmutability
setPlayer Called With A Partial Object
A component stores this state:
REACT_MODULE // 0x42
{
firstName: 'Ranjani',
lastName: 'Shettar',
score: 10
}
// Then it runs:
setPlayer({
lastName: 'Smith'
});What happens after the re-render?