dioxus/packages/router
Jon Kelley 540e785d8b
Less clumsy configuration for desktop and mobile (#553)
* chore: dont use prebuilt builder pattern for configuring desktop

* chore: use regular config pattern for web

* Chore: update docs too

* chore: clean up some warnings
2022-09-13 16:22:27 -07:00
..
examples Renderers are now packages, not features. (#387) 2022-07-09 15:15:20 -04:00
src Less clumsy configuration for desktop and mobile (#553) 2022-09-13 16:22:27 -07:00
tests Renderers are now packages, not features. (#387) 2022-07-09 15:15:20 -04:00
.gitignore chore: move tests out of core and into the top level crate 2022-03-02 22:48:22 -05:00
Cargo.toml Renderers are now packages, not features. (#387) 2022-07-09 15:15:20 -04:00
CHANGELOG.md feat: add changelogs 2022-01-29 10:17:14 -05:00
Makefile.toml improve Makefile tests 2022-02-04 17:18:31 +01:00
README.md Update README.md 2022-05-21 23:33:17 +08:00
usage.md Added initial_url to the router component (#510) 2022-09-13 13:09:00 -07:00
webdriver.json fix some newlines 2022-02-03 09:28:06 +01:00

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