5 ms·
You can also achieve this with Astro, which will render your React islands statically and also enable client-side JS for interactivity / progressive enhancement
by pcthrowaway 3y ago
You can also achieve this with Astro, which will render your React islands statically and also enable client-side JS for interactivity / progressive enhancement when the client has JS enabled
- satvikpendem 3y agoTrue, 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.
- pcthrowaway 3y agoIf 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.