Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can’t wait for this to be everywhere. React was amazing to get us where we are today but this shadow dom without js will allow server side rendering components without react


You don't need React to server-side render anything, including components.

Besides, if you need components, web components are probably the last thing you want to reach for.

Edit: Also, none of the major frameworks, and very few of the new frameworks target web components for many reason fully ignored by browser vendors. They can "consume" them (that is embed them in code), but at most compile to web components, reluctantly. And still provide components and SSR, and have for years.


Why would you need react to render server side components?


After this TP gets released, it looks like FF will be the only outlier[1]

[1] https://caniuse.com/declarative-shadow-dom


Thankfully Firefox recently changed their stance from "Neutral" to "Positive".

https://github.com/mozilla/standards-positions/pull/740

> Neutral stance: We're not convinced that the complexity this feature introduces upon the HTML parser carries its weight in terms of usefulness for web developers. There's also a risk that the processing model is not compatible with a future declarative custom elements feature as it was developed in isolation. Having said that, the proposal is a reasonable approach for this functionality that takes into account the various constraints and security considerations that come with changing the HTML parser.

> Positive Stance: This is a reasonable proposal which takes into account the various constraints and security considerations that come with changing the HTML parser.

Hopefully that's a sign of things to come! (Fingers crossed)




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

Search: