HonoH
Hono15mo ago
MrBlach

SSR and Client components using Cloudflare pages

Hello, I have been trying to get server-side rendering and client components to work for some time now, but I can't seem to make it function properly. I used the template from bun create hono and selected Cloudflare Pages. While the page gets rendered, it doesn't get hydrated on the client.

I have looked into the hono/jsx-dom documentation (https://hono.dev/docs/guides/jsx-dom) and this example (https://github.com/honojs/examples/tree/main/hono-vite-jsx), but I have been unable to use them with a server-side rendered application.

Any help would be greatly appreciated!
Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
Was this page helpful?