2. Why Reactivity?
- If we change the state we need to reflect the updated data with entire system. E.g.
3. Reactivity in Spreadsheet / Excel
t
aaaaaaa
In programic terms - what if we have a magic function!
onAChange(() => {
b = a * 10;
})
Real DOM Programming
4. Object.defineProperty()
- The static method Object.defineProperty() defines a new property directly on an object, or
modifies an existing property on an object, and returns the object.
Object.defineProperty(obj, prop, descriptor)