Crates.io | dioxus-retrouter |
lib.rs | dioxus-retrouter |
version | 0.4.0 |
source | src |
created_at | 2024-03-06 19:41:01.22985 |
updated_at | 2024-03-06 19:41:01.22985 |
description | Cross-platform router for Dioxus apps (0.3 dioxus router style) |
homepage | |
repository | https://github.com/mrxiaozhuox/dioxus-retrouter/ |
max_upload_size | |
id | 1165138 |
size | 93,682 |
code copied from Dioxus 0.3.2 Router
This repoistory use for maintain retro-style Dioxus router (before 0.4), I think the old version of router is more friendly to dynamic router.
fn app() {
cx.render(rsx! {
Router {
Route { to: "/", Component {} },
Route { to: "/blog", Blog {} },
Route { to: "/blog/:id", BlogPost {} },
}
})
}
You need to enable the right features for the platform you're targeting since these are not determined automatically!
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.