News for hackers. Stuff that matters.
Re:Facebook just updated its relationship status with Web Co... by djbusby on Tuesday May 07, 2024 @08:43PM (#40293191)
I read the point as WebComponents will last longer because "a standard" while React is "a Facebook standard".
Re:Facebook just updated its relationship status with Web Co... by hn_throwaway_99 on Tuesday May 07, 2024 @08:57PM (#40293268)
There's also the "React is the industry standard that tons of developers and companies use" vs. the "WebComponents is the 'official' standard that nearly nobody uses".

Yes, I'm being hyperbolic. But if you're worried about longevity I would certainly hitch my wagon to React before I hitched it to WebComponents.

Re:Facebook just updated its relationship status with Web Co... by croes on Tuesday May 07, 2024 @09:40PM (#40293517)
React is like JQuery.
Re:Facebook just updated its relationship status with Web Co... by afavour on Tuesday May 07, 2024 @11:36PM (#40294091)
Unfortunately I don’t think that comparison quite holds. jQuery is mentioned less and less because core browser APIs implemented a lot of what it does and made it unnecessary.

Even if Web Components solve the “create a component” part of React there’s still an absolute ton of stuff it provides that Web Components don’t. I tend to think of WC as a low level API you want a library interfacing with rather than your own code, e.g. the way Svelte exports web components.

Re:Facebook just updated its relationship status with Web Co... by Dylan16807 on Tuesday May 07, 2024 @10:30PM (#40293791)
If it's a choice between removing the JQuery dependency from old JQuery code, or updating equally old vanilla javascript, I'm going to be picking the first option a lot.
Re:Facebook just updated its relationship status with Web Co... by sdwr on Tuesday May 07, 2024 @10:40PM (#40293835)
The point isn't that it's a standard, it's that it's implemented in browser (not in a framework), and is a lot closer to the web equivalent of "bare metal". There are less moving pieces that will break backwards compatibility in the next 10 years (is the hope)