What web frontend frameworks/libraries are available that fallbacks to server-side rendering if JavaScript is unavailable on the client-side?<p>I can think of Unpoly, but are there any other options available?
I'm pretty sure Svelte and Sveltekit can do this for navigation. Maybe Gatsby too.<p>But keep in mind a lot of the interactivity won't work the same.<p>Generally the page is pre-rendered on the server, and then links are hydrated to prevent page refreshes on navigation. If Javascript is off, the browser does a page refresh when the user clicks links, and the server pre-renders those.<p>In fact, I think a lot of frameworks can do this now: Qwik, Next, etc.
Yes, I have built one on top of Next.js.<p>What do you think? Is this what you are looking for?<p><a href="https://www.elegantframework.com/" rel="nofollow">https://www.elegantframework.com/</a><p><a href="https://github.com/elegantframework/elegant-cli">https://github.com/elegantframework/elegant-cli</a>
React? Pretty trivial to set this up in React. But why fallback when you can just do both. SSR always. Then let the js run if its enabled. This is what Next.js and countless other react frameworks do