News for hackers. Stuff that matters.
Re:Plain Vanilla Web by spankalee on Sunday May 11, 2025 @04:41PM (#43956964)
Web components only solve the interoperable, encapsulated component problem.

Rendering libraries like Lit handle declarative templates, and there are many state management solutions, the same ones you can use with React, etc.

Re:Plain Vanilla Web by sesm on Monday May 12, 2025 @08:18AM (#43962128)
Encapsulated - yes.

Interoperable - can you expand on this?

Re:Plain Vanilla Web by WorldMaker on Tuesday May 13, 2025 @12:28PM (#43974684)
Interoperable: You can build a Web Component once and it should work "out of the box" in the latest Angular, React, Vue, Svelte, etc. (React was among the last holdouts on Web Component support because of Virtual DOM silliness.) Interoperable Web Components get us away from the era of needing to build npm libraries like ng-mycomponent, react-mycomponent, vue-mycomponent, for all the various combinations of drastically different component systems and ways of writing components, even when your component's core was as Vanilla as you could make it and you shared as much code as you could between implementations there were still so many small subtle things to do differently.