Using native Web Components to keep code DRY
I’ve written before about Web Components. Whenever I do, I tend to get a lot of questions about when and why you would actually use them.
I think people think of them as (or want them to be) a replacement for things like Vue or React. And while they can be, that’s not really their strength or what they were made to do. Instead, they provide developers with an HTML-based API for adding interactive components into their UIs.
And as fellow vanilla web evangelist Jared White demonstrates in this video, they also provide a way to keep your code DRY (an acronym for Don’t Repeat Yourself).
Jared shares a lot of great ways to use the web platform for a simpler development experience, so if you like my stuff, you’ll like his too!