News for hackers. Stuff that matters.
Re:HonoJS: Small, simple, and ultrafast web framework for th... by throwitaway1123 on Tuesday April 16, 2024 @01:13AM (#40048580)
> After researching Hono, it turns out it can render JSX directly from the server, which piqued my interest. Then I tried to make the JSX interactive, and finally, I used htmx. Lol.

HTMX is fine if you want to avoid writing client side JS, but Hono did add support for client components in version 4 [1]. There's even an esbuild middleware that can transpile TS/TSX files on the fly (the Deno framework Fresh uses a similar technique) [2].

[1] https://hono.dev/guides/jsx-dom

[2] https://github.com/honojs/middleware/tree/main/packages/esbu...

Re:HonoJS: Small, simple, and ultrafast web framework for th... by mb2100 on Wednesday April 17, 2024 @08:48AM (#40063884)
Hono client components are interesting. But I couldn't find any docs on how it's implemented and how that implementation compares to React/Preact/Solid etc.