News for hackers. Stuff that matters.
Re:Web Components Are Okay by tomjen3 on Sunday September 29, 2024 @09:38AM (#41687332)
Why would I used them over something like a Vue component?
Re:Web Components Are Okay by burcs on Sunday September 29, 2024 @09:54AM (#41687434)
They are framework-agnostic, meaning you're not locked into Vue, React, Angular, or any specific framework. They work natively in the browser, which makes them reusable everywhere, now and in the future.
Re:Web Components Are Okay by throw310822 on Sunday September 29, 2024 @10:44AM (#41687767)
> They are framework-agnostic

This is a selling point only if your job is producing component libraries. Otherwise, if you're an application developer, you'll be using a framework anyway.

Re:Web Components Are Okay by apotropaic on Sunday September 29, 2024 @01:39PM (#41688948)
Not entirely true. Making UI parts of your app using web components can future proof and prevent getting stuck on a framework.