News for hackers. Stuff that matters.
Re:GitHub Stars !== Usage: React Is Still Blowing Vue and An... by dmitriid on Tuesday June 19, 2018 @03:02PM (#17349386)
> the various debates around web components and shadow DOM isolation get sorted out.

They won’t. jQuery was a much simpler concept and basically a fluent wrapper around a lot of existing APIs.

11 years later none of the browser APIs are not nearly as easy to use or powerful as jQuery. (Did you know that querySelectorAll returns an object that, unlike jQuery, isn’t an array and doesn’t have the same APIs? They added frigging .forEach to it only a few years ago).

Components are a more complex concept. You need data binding, and virtual DOMs (to prevent out-of-order janky updates to the DOM), and templating, and a solution for both global and isolated CSS, and..., and..., and...

These issues won’t be solved in the next 50 years. And that’s the reason no one uses (or talks about) vanilla WebComponents. Everyone is using any of the dozens of wrappers or frameworks on top of them.

Edit: added missing not in not nearly as easy

There are no comments on this comment yet.