This week, I had a conversation on Mastodon with Kyle Leaders and Jake Lazaroff about reactivity and DOM diffing in Web Components… I have to say I’ve been actually enjoying working with #webcomponents in #vanillajs lately. I haven’t attempted anything too complicated, but I love the idea of reusable components. Next up, I need to figure out how to best do reactive updates. This is one area where the native web platform falls a bit short.| gomakethings.com
Why custom attributes are the simplest way to layer functionality on top of HTML.| Unplanned Obsolescence
I’ve worked with Web Components a little bit over the last few, but really struggled to understand the use case for them. Until this week. Between Jeremy Keith’s article on HTML Web Components, plus using one for a client project with NASA, something just clicked in my brain finally. I’m now convinced that they’re the best way to author DOM manipulation libraries. Over the last few days, I converted half a dozen old JS libraries of mine to Web Components.| gomakethings.com
A post by Zach Leatherman (zachleat)| Zach Leatherman