Routing for Dioxus App
DioxusRouter adds React-Router style routing to your Dioxus apps. Works in browser, SSR, and natively.
Then, in your route, you can choose to parse the Route any way you want through use_route.
let id: usize = use_route.path?;
let state: CustomState = use_route.parse?;
Adding links into your app:
Link
Currently, the router is only supported in a web environment, but we plan to add 1st-party support via the context API when new renderers are available.