News for hackers. Stuff that matters.
Re:Web Components Eliminate JavaScript Framework Lock-In by pseudosavant on Monday November 27, 2023 @04:01PM (#38438227)
I'm pretty sure that just shipping the HTML works. The nice thing if I use web components is that I can just have my backend create HTML that uses those components. I can create elements whatever way I want on the backend or the front-end so long as it is HTML.
Re:Web Components Eliminate JavaScript Framework Lock-In by robin_reala on Monday November 27, 2023 @04:23PM (#38438531)
Yes, if you stick to custom elements. If you want shadow dom encapsulation then you’ll need to wait for declarative shadow dom to turn up in all browsers.