https://jakelazaroff.com/words/isomorphic-web-components/ Jake Lazaroff * Blog * Projects * About * Bluesky * Mastodon * Twitter * GitHub Isomorphic Web Components December 11, 2024 --------------------------------------------------------------------- * #webcomponents Table of Contents The Current Landscape Isomorphic Rendering Conclusion Web components might be great, if only you could render them on the server. Or can you? The lack of server-side rendering has become a sort of folk belief that oft goes unquestioned, and many people form opinions based on this (alleged) missing feature. Well, I am happy to report that the fears are unfounded: you can absolutely server-side render a web component. But there are a few different ways it can go down. The Current Landscape Let's start from the top. The building blocks of web components -- template elements, custom elements and (declarative) shadow DOM -- are all just HTML tags. So from a pedantic point of view, server-side rendering a web component is trivial: just put a