|
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 {} },
}
})
}