News for hackers. Stuff that matters.
Re:Web Components could replace frontend frameworks? by Vinnl on Friday April 12, 2019 @03:18AM (#19642716)
But at that point the headline is "framework x could replace framework y"?

Web Components are great for reusable components like date pickers that you might want to re-use regardless of framework. If they're just the technology backing the implementation of some framework, than that framework is only worth switching to if it provides something fundamentally better than the framework you and many others already know, because the mere fact that it's built on Web Components no longer provides a significant advantage...

Re:Web Components could replace frontend frameworks? by spankalee on Friday April 12, 2019 @11:01AM (#19645356)
Templating libraries are far from frameworks. lit-html doesn't have a component model, and it's use in a web component doesn't leak outside of that component. You could switch from lit-html to something else and it wouldn't be a breaking change to users.

Try thinking about writing a React component that doesn't use React to render. Or seamlessly intermixing React and Vue commoners. Then you see the difference.