Replies: 2 comments 1 reply
-
Check The approach is to use Islands |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @mapokapo You can refer to this project: https://github.com/yusukebe/hono-jsx-dom-with-vite It's hard to make hydrate mechanize client-side interaction with server-rendered pages. But you can write a simple SPA like the above. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use Hono to make an API with a few endpoints, and consume that API in JSX components which are also statically served from Hono (like an SPA).
The idea is to make a really quick and simple MVP which includes both a server API and an interactive client within the same Hono project, without using React or making a separate client project.
For example, in the following code:
Is it possible for
Home
to be a JSX component which usesuseState
anduseEffect
(fromhono/jsx/dom
)?Beta Was this translation helpful? Give feedback.
All reactions