Why use Web Components over traditional DOM manipulation?
May 15, 2024
If you’ve been following my articles on HTML Web Components, you may have come away thinking…This looks a lot like traditional DOM manipulation. And you’d be right!
Web Components basically do exactly the same thing you can do with HTML and vanilla JS already. So why would you even bother using Web Components?
Source: Why use Web Components over traditional DOM manipulation? | Go Make Things
Chris Ferdinandi has a series on Web Components, and here considers how they compare with traditional DOM manipulation.