H
Hono7mo ago
Kodjo.ai

Combine SSR and Client Components without HonoX

What's the prefered way to have these two working together with syntaxic coloration and no raw html in one color in my VS Code editor? SSR: https://hono.dev/docs/guides/jsx Client side: https://hono.dev/docs/guides/jsx-dom
JSX - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
Client Components - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
No description
9 Replies
Kodjo.ai
Kodjo.aiOP7mo ago
Yes, there’s no example how to do it
Aditya Mathur
Aditya Mathur7mo ago
Working on an example, will share soon
Aditya Mathur
Aditya Mathur7mo ago
I have attached a PR in this, not sure when it will be added but you can look at the code - https://github.com/honojs/examples/issues/197
GitHub
Add example to use hono/jsx-dom · Issue #197 · honojs/examples
Many people in the community are unsure how to use Client Componet with hono, basically how to set it up and start using it in dev/prod. I can create a PR for this using vite.
Aditya Mathur
Aditya Mathur7mo ago
It's done you can check out the template
Kodjo.ai
Kodjo.aiOP7mo ago
Thank you solved!
stephenwil
stephenwil3mo ago
Can you do an example except using deno instead of node?
Kodjo.ai
Kodjo.aiOP3mo ago
Deno is node compatible now
Aditya Mathur
Aditya Mathur2mo ago
I have updated the example tho - https://github.com/honojs/examples/tree/main/hono-vite-jsx, it now uses vite For deno, the code should remain the same only, as you will require something like vite to bundle your client components

Did you find this page helpful?