If you've been following my articles on HTML Web Components, you may have come away thinking…
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? What I like about them is that they make it easier to a lot of the annoying stuff involved in DOM manipulation…
If vanilla JS is a manual screwdriver, WC's are an electrical drill. You might use them for the same task, but a WC will make some tasks a bit faster/easier (and be overkill for other things). Like this? You can support my work by purchasing an annual membership. Cheers, Want to share this with others or read it later? View it in a browser. |
0 Komentar untuk "[Go Make Things] Why use Web Components over traditional DOM manipulation?"