Replies: 3 comments 3 replies
-
|
You might not like the answer, but the direction I’m headed is
In my mind this might turn into a client-side runtime library which attaches an event listener to the root, and swaps in elements. With all this said, we live in a nominally free country, and this is open source, so you’re free to do what you want. Raviger seems to be tastefully designed 😙 https://github.com/bikeshaving/shovel/tree/main/packages/router |
Beta Was this translation helpful? Give feedback.
-
|
That's a very reasonable answer, though I have some disagreements
I'd like to help with the official solution, as long as its intended to cover my use cases. I am a little confused on how |
Beta Was this translation helpful? Give feedback.
-
|
fwiw, I was able to throw together dead simple routing with nano-router and switch statement because crank rules. https://github.com/thefrontside/inspector/blob/main/ui/app/app.tsx I'm sure there are a ton of use-cases I'm not really considering, but for those looking for something low-cost that will have them up and running in 5 minutes, this has carried us a long way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There is already a crank-router package but it unmaintained and is missing features like query and hash change integration. I think this is a missing piece in the crank ecosystem.
Is there an option or plan that I am missing?
If not, I maintain a small react routing library based entirely on react hooks, and I think the API would be a pretty good fit for crank (using context utilities). I'd be happy to port it to crank, and I have a project I could dogfood with.
Beta Was this translation helpful? Give feedback.
All reactions