← All questions
LWCHard
Reactivity with object properties
A component displays {person.name} in its template and runs this code in a button handler. Why doesn't the template update?
// person was initialized as { name: 'Ada' }
handleClick() {
this.person.name = 'Grace';
}