Re:Svelte 5: Runes
by satvikpendem on Wednesday September 20, 2023 @01:12PM
(#37586825)
True, however it's wrapped up in a nice DX in NextJS. In Astro, if I have multiple components that need React interactivity, are they all separate React apps basically? Or are they the same but with different roots? In NextJS, they're the same and Next can intelligently figure out which to render server side and which to render client side.
[ Parent
| on HN ]
Re:Svelte 5: Runes
by pcthrowaway on Wednesday September 20, 2023 @01:47PM
(#37587305)
If I understand correctly, the React runtime is shared between islands (and you can share state between them if necessary), but they're also pre-rendered for their initial state at build-time.
So you can't do as much in Astro as you can in Next.js, but it will definitely scratch the itch of compile-time rendering.