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.
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
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
- Još 4 druga odgovora
Novi razgovor -
-
-
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.
- Još 1 odgovor
Novi razgovor -
-
-
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.
Kraj razgovora
Novi razgovor -
-
-
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.
Kraj razgovora
Novi razgovor -
-
-
A good reason to structure your trees so they have as many static parts/subtrees as possible.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.