inb4: you don't have to like, use or even care about Tagged Templates to get this - you can output this via a drop-in replacement for the JSX babel plugin.
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This is wild! I would have never thought of this as a concern of the templating/rendering layer instead of the actual component framework, but the more I do the more I like it
-
it knows so much
- 4 more replies
New conversation -
-
-
Isn’t that the responsibility of, e.g., Preact? Or can HTM also be used without a UI library?
-
It works in tandem. HTM can be used with anything that uses JSX, basically anything that does this: (type, props, ...children) => Thing The key is that HTM skips that function and returns cached results. UI libs can use this to skip rendering referentially-equal nodes.
- 1 more reply
New conversation -
-
-
Is there still a v-dom or just template literals magic?
-
HTM is a replacement for JSX, so it's still whatever renderer you pair it up with.
End of conversation
New conversation -
-
-
I believe this can be achieved with LitElement + Component-Controller Model through differential rendering. Come to the We bComponents SF talk!
-
This is how lit-html works always, regardless of the component model or any abstractions on top of it.
End of conversation
New conversation -
-
-
A good reason to structure your trees so they have as many static parts/subtrees as possible.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.