dioxus/packages/router
2022-03-27 09:23:44 -06:00
..
examples Convert all logs to trace 2022-03-27 09:23:44 -06:00
src Convert all logs to trace 2022-03-27 09:23:44 -06:00
tests Convert all logs to trace 2022-03-27 09:23:44 -06:00
.gitignore
Cargo.toml fix: compile router on web 2022-03-09 21:14:22 -05:00
CHANGELOG.md
Makefile.toml
README.md
usage.md active_class prop for Router 2022-03-13 16:35:28 +00:00
webdriver.json

Dioxus Router

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

Resources

  • See the mdbook
  • See the one-page brief
  • See the guide on the doc site
  • The crates.io API