Hacker News new | past | comments | ask | show | jobs | submit login

> I'd really like something that worked easily with SSR and client-side

Then you should skip Web Components :)




For sure. SSR is one thing that React has done well, and that Web Components don’t have a great story for.


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.


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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: