Re:Building a Single-Page App with Htmx
by Imustaskforhelp on Monday October 07, 2024 @01:31PM
(#41768552)
yes but mostly the island architecture is only dominant in the javascript world
we can basically get the benefits of spa without having to learn js / use minimal js using htmx in some sense
https://github.com/donseba/go-htmx check this out
If you render HTML on the client you still have to render a transport format (usually JSON) on the server side. Sending HTML just lets you skip the transport format and the client side rendering.
Re:Building a Single-Page App with Htmx
by LudwigNagasena on Tuesday October 08, 2024 @06:13AM
(#41775616)
And letting your framework do the bookkeeping for you lets you skip the whole issue. I don't know the exact specification of React Server Component Payload, but I know that it somehow changes stuff on the client-side when the client interacts with the server. (It sends something like `["$","p",null,{"children":["a child","another child"]}]`)
Re:Building a Single-Page App with Htmx
by traverseda on Wednesday October 09, 2024 @08:56AM
(#41787422)
It's still one server side template, you just render different parts depending on what is calling it. By default render a full page, if you want to get precious about a few dozen KB from sending a full page over the wire you can toggle some blocks off.
And then you end up with modern SSR frameworks that do the bookkeeping for you.