|
il y a 3 ans | |
---|---|---|
.. | ||
examples | il y a 3 ans | |
src | il y a 3 ans | |
tests | il y a 3 ans | |
.gitignore | il y a 3 ans | |
CHANGELOG.md | il y a 3 ans | |
Cargo.toml | il y a 3 ans | |
Makefile.toml | il y a 3 ans | |
README.md | il y a 3 ans | |
usage.md | il y a 3 ans | |
webdriver.json | il y a 3 ans |
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 {} },
}
})
}