11 ms·
> But when do yo update the view? Angular dirty-checks the model on each $digest cycle. React dirty-checks the view. The answer is in that statements. Angular
by joesb 11y ago
> But when do yo update the view? Angular dirty-checks the model on each $digest cycle. React dirty-checks the view.
The answer is in that statements. Angular and React is not you.
> Simply keep references to the DOM elements in your component and (you) update them. It's much faster and gives you more control...
The point of React and Angular is that you don't have to think about updating the DOM.
- EGreg 11y agoSo they run into the typical problem of handling the "general case" in their own special way, and leaving you out in the cold for the other cases. Someone made a chess move? Someone queued a new song? Someone wrote a new chat message?