Ask HN: Any web frontend library that fallbacks to SSR if JavaScript is missing?

  • I'm pretty sure Svelte and Sveltekit can do this for navigation. Maybe Gatsby too.

    But keep in mind a lot of the interactivity won't work the same.

    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.

    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.

    What do you think? Is this what you are looking for?

    https://www.elegantframework.com/

    https://github.com/elegantframework/elegant-cli

  • 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

  • Definitely next.js that's why it's also way better for SEO than react

  • NextJS does this.

  • Remix

  • Can next js do this?