Repository navigation
Replies: 2 comments
|
Unlike JavaScript, there are some complications with file-based routing, imposed by the Rust language. Consider the following layout:
I think these limitations above kind of defeats the point of file-based routing unless we have a command line tool to do code generation. However, it still is kind of unintuitive if for each page a command has to be run to do code generation before it can be enabled. However, just like React / Next.js, file-based routing does not require any first-party support from the core Yew renderer. |
0 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.
With the rise of popularity of meta frameworks Next, Nuxt and SvelteKit, it'd be nice to see a file based router for Yew. I'm aware these are meta frameworks which are built on top of React, Vue and Svelte respectively; given the current circumstances, it'd be great if this was supported out of the box or perhaps the Yew team can investigate the creation of a separate project for a meta framework.
All reactions