Hacker News new | ask | show | jobs
by throwitaway1123 796 days ago
> 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...

1 comments

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.