Jonathan Kelley 92a8b7c75f fmt: fix formatting il y a 3 ans
..
examples 92a8b7c75f fmt: fix formatting il y a 3 ans
src fbf8e13b8d clean up imports il y a 3 ans
tests 0777437243 Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-events il y a 3 ans
.gitignore e04a6d63a5 chore: move tests out of core and into the top level crate il y a 3 ans
CHANGELOG.md 56f3002aed feat: add changelogs il y a 3 ans
Cargo.toml 041f474329 Merge remote-tracking branch 'upstream/master' into clean_up_rsx_imports il y a 3 ans
Makefile.toml bd565bb65f improve Makefile tests il y a 3 ans
README.md 8346525db5 Update README.md il y a 3 ans
usage.md 9a23ee4612 active_class prop for Router il y a 3 ans
webdriver.json ee49fc27ff fix some newlines il y a 3 ans

README.md

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