9 ms·
Wouldn't it be backwards to do this in React? Everything is controlled by a state object you manually set, so you already know when values are going to change.
by untog 10y ago
Wouldn't it be backwards to do this in React? Everything is controlled by a state object you manually set, so you already know when values are going to change.
- sandGorgon 10y agoactually - I'm talking about a function expression. Think about a spreadsheet with a formula similar to "=SUM(A1+B1)". What this means is that when A1 or B1 change.. then this formula result should get re-computed. Remember that A1 and B1 themselves may be computed results... what happens today is that I need to recompute ALL formulas - because there is no easy way to know which formulas changed.