Use Hono routing directly? #42
Unanswered
alexturpin
asked this question in
Q&A
Replies: 1 comment 6 replies
-
|
Hmm, I guess there is kind of an expectation that one is using a client side router. For your use case, how are you planning to do routing on the client side? A full page reload on every link click? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Just found this package, been looking for a long time for a lightweight solution to render React applications on Cloudflare workers. I'm trying to see if I can integrate ssrx by using Hono's routing directly. For instance:
However I'm not too sure what the best practices around that would be; right now I export
createApp:And can always render that simple app in my route:
But I'm wondering if people have any thoughts on best practices / a neat way to wrap this up so I can use it directly with Hono's routing. Should I write a plugin? Will I be unable to benefit from code splitting if I do it this way, and I should just swallow my pride and use react-router for those routes?
Thanks for any feedback you might have!
Beta Was this translation helpful? Give feedback.
All reactions