|
пре 3 година | |
---|---|---|
.. | ||
examples | пре 3 година | |
src | пре 3 година | |
tests | пре 3 година | |
.gitignore | пре 3 година | |
CHANGELOG.md | пре 3 година | |
Cargo.toml | пре 3 година | |
Makefile.toml | пре 3 година | |
README.md | пре 3 година | |
usage.md | пре 3 година | |
webdriver.json | пре 3 година |
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 {} },
}
})
}