|
|
|
|
|
by spankalee
2399 days ago
|
|
It is very correct: lit-html is amongst the fastest template systems in use right now. This is shown in every benchmark I've seen or made for it. lit-html updates only the parts of DOM that are dynamic and change. It handles nested templates as values, only updating the whole nested template if the template itself changes, otherwise recursing and only updating that template's values if needed. Repeated DOM is handled either by simply updating state for each item in sequence (non-keyed), or by using the repeat() directive which will move DOM (keyed). You absolutely don't need to manually update DOM. The whole point is to describe your DOM structure as a function of data, and to be to describe all the conditional / repeated parts in the template expression itself. |
|