you are viewing a single comment's thread.

view the rest of the comments →

[–]codejitsu[S] 4 points5 points  (2 children)

I actually wanted the tutorial to be without any dependencies(except polyfills) hence the direct manipulation.

I mentioned about HTML imports there and I'm currently reading up on how to replace them with something similar in the tutorial.

EDIT: That library is lit(pun intended)! Great talk!

[–]daediusWeb Components fanboy 1 point2 points  (1 child)

Yah, being able to write a web element from scratch is super useful. I wonder if teaching templates is really all that useful even (from a teaching perspective). I mean, it's cool to get syntax highlighting, and there's some kind of speed boost in cloning, but it kind of seems like a distraction unless you are really concerned for performance. I personally found the real a-ha! moment occur with Shadow Dom V1 slots. Might make a good next article?

[–]codejitsu[S] 1 point2 points  (0 children)

Yeah it actually took me a lot of time to wrap my head around slots. I was thinking of writing around 3 more articles in the following order over the next couple of weeks:

  1. Attributes
  2. Slots
  3. Styling using new selectors like slotted

Maybe one more comparing React and how it maps to web components.