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

> a form with tab needs JS to operate

Yes, this use case is better solved client-side but even in an SSR app you can always use rich widgets/web components in React, Preact, Vue, Svelte, etc.

> I wanted to build a new user wizard

Use some JS component(s) or web component(s) as I pointed out earlier.

> In HTMX your backend needs to have a "full render" endpoint and a "table only" render endpoint

See fragments:

https://htmx.org/essays/template-fragments/

> I haven't see any good backend framework that has similar server-rendered frontend component like React

Plenty of backend solutions give you SSR components that are composable and where you can colocate template with backend logic. See Razor pages in dotnet or Astro.

> but I know of no Next.js-style library for any frontend framework that actually allow form submission without JavaScript AND progressive enhancement with JavaScript using the same code

I'm 99% certain SvelteKit and Remix allow you to do this.



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

Search: