Use react router in client components. #2348
Unanswered
carloslato
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I've got a sample repository with Hono on Cloudflare Pages found here. How it WorksThe index path After setting up the React script serving & router switching, you can add any routes or middleware just like you would any Hono app to the For ImprovementIf you have any feedback for it, feel free to raise an issue or make a PR as I'd like to improve on it for future reference. I hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I am testing the client components and I would like to know if it is possible to use react libraries like React Router. I tried but I got some errors in console:
Uncaught TypeError: d.current is null
My goal is to deploy an app in cloudflare pages and use /functions for the backend. My other alternative to solve my problem is to simply use React for the frontend, but I wanted to know if there was a way to do it entirely with hono.
Beta Was this translation helpful? Give feedback.
All reactions