Check how fast it is

It looks pretty performant…

I read an article by Ryan Carniato explaining how it uses multiple methods to render including cloning templates.

IDK whether he meant <template> in the page HTML or in JS memory (but why if you can do the same with documentFragment).

I suppose the whole “build a DOM tree from JSON” and assign properties is not performant compared to cloneNode -> textContent / Object.assign().

1 Like