5 ms·
From this page: https://www.fast.design/docs/fast-element/observables-and-state https://www.fast.design/docs/fast-element/observables-and-st... > The arrow fu
by bokchoi 6y ago
From this page:
https://www.fast.design/docs/fast-element/observables-and-state https://www.fast.design/docs/fast-element/observables-and-st...
> The arrow function bindings and directives used in templates allow the fast-element templating engine to intelligently react by only updating the parts of the DOM that actually change, with no need for a virtual DOM, VDOM diffing, or DOM reconciliation algorithms. This approach enables top-tier initial render time, industry-leading incremental DOM updates, and ultra-low memory allocation.
> When a binding is used within a template, the underlying engine uses a technique to capture which properties are accessed in that expression. With the list of properties captured, it then subscribes to changes in their values. Any time a value changes, a task is scheduled on the DOM update queue. When the queue is processed, all updates run as a batch, updating precisely the aspects of the DOM that have changed.
That's neat.