Hacker News new | ask | show | jobs
by pimterry 3506 days ago
I've been working on one fun solution to this: server-side rendering of web components - https://github.com/pimterry/server-components.

The idea is much the same as server-rendering anything else: you give the components a first run to generate HTML server-side, send that first, and then let JS progressively enhance interactivity on top in the client if it can, or just stick with the initially rendered version if it can't.

(Server components is currently still on the V0 version of the spec, and this article is talking about V1, but they're very similar and we're migrating at the moment).