←back to thread

217 points palmfacehn | 1 comments | | HN request time: 0s | source
Show context
mvdtnz ◴[] No.45107198[source]
Reading the first example I'm not really seeing what gains I get from this. It's just as much work to create a table row using the template as doing it from scratch.
replies(6): >>45107214 #>>45107398 #>>45107429 #>>45107514 #>>45108016 #>>45110197 #
1. tehbeard ◴[] No.45107398[source]
The example is a contrived *simple* example to get the point of it being easily cloneable into DOM nodes you then manipulate.

Maybe a more understandable example for you would be it's use in conjunction with <slot>, shown here: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...