Server-First Web Components with DSD, Htmx, and Islands
Web Components gained universal browser support by 2020, with streaming Declarative Shadow DOM widely supported in February 2024, enabling server-rendering techniques applicable across various frameworks. A course is offered for further learning.
Read original articleWeb Components have evolved significantly since their introduction, achieving universal support across major browsers by 2020. A notable advancement is the streaming Declarative Shadow DOM (DSD), which became widely supported in February 2024 with Firefox's implementation. This enhancement allows developers to utilize server-rendering techniques for Web Components, minimizing the reliance on extensive JavaScript. The article discusses how to integrate these server-first Web Components using popular frameworks like Node.js, Express, and Handlebars, while also being applicable to other modern web frameworks such as Rails and .NET. The author, Rob Eisenberg, emphasizes the importance of leveraging existing server frameworks to enhance native component capabilities without overwhelming the application with JavaScript. For those interested in deepening their understanding of Web Components, Eisenberg offers a comprehensive Web Component Engineering course that covers various aspects, including DOM APIs, modular CSS, and accessibility.
- Web Components achieved universal browser support by 2020.
- Streaming Declarative Shadow DOM (DSD) was fully supported in February 2024.
- The article focuses on server-rendering techniques for Web Components.
- Techniques can be applied across various web frameworks, not just Node.js.
- A Web Component Engineering course is available for further learning.
Related
We moved away from web components – learnings from a Component-First DevTool
Corbado, a startup, transitioned to framework-specific components like passkeys for user authentication in 2024. The move aimed to improve developer experience and meet evolving needs efficiently. The blog post covers benefits, challenges, strategies, and recommendations for startups considering a similar shift. It explores scenarios favoring a component-first strategy and details building web components using various technologies. The discussion guides developers in navigating the JavaScript UI component-first startup landscape.
Show HN: Plain Vanilla – a tutorial website for vanilla web development
The article discusses web development using only HTML, CSS, and JavaScript, emphasizing Web Components and modern CSS. It encourages experienced developers to explore this simpler, standards-based approach for building applications.
Related
We moved away from web components – learnings from a Component-First DevTool
Corbado, a startup, transitioned to framework-specific components like passkeys for user authentication in 2024. The move aimed to improve developer experience and meet evolving needs efficiently. The blog post covers benefits, challenges, strategies, and recommendations for startups considering a similar shift. It explores scenarios favoring a component-first strategy and details building web components using various technologies. The discussion guides developers in navigating the JavaScript UI component-first startup landscape.
Show HN: Plain Vanilla – a tutorial website for vanilla web development
The article discusses web development using only HTML, CSS, and JavaScript, emphasizing Web Components and modern CSS. It encourages experienced developers to explore this simpler, standards-based approach for building applications.