News for hackers. Stuff that matters.
Re:Building a Single-Page App with Htmx by dingnuts on Monday October 07, 2024 @05:35PM (#41771304)
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"]}]`)