|
hace 3 años | |
---|---|---|
.. | ||
examples | hace 3 años | |
src | hace 3 años | |
tests | hace 3 años | |
.gitignore | hace 3 años | |
CHANGELOG.md | hace 3 años | |
Cargo.toml | hace 3 años | |
Makefile.toml | hace 3 años | |
README.md | hace 3 años | |
usage.md | hace 3 años | |
webdriver.json | hace 3 años |
Dioxus Router is a first-party Router for all your Dioxus Apps. It provides a React-Router style interface that works anywhere: across the browser, SSR, and natively.
fn app() {
cx.render(rsx! {
Router {
Route { to: "/", Component {} },
Route { to: "/blog", Blog {} },
Route { to: "/blog/:id", BlogPost {} },
}
})
}