dioxus/packages/router
2023-07-08 11:04:27 -05:00
..
examples fix duplicate example names 2023-05-02 09:38:58 -05:00
src Merge branch 'upstream' into server-fn 2023-05-02 11:05:38 -05:00
tests fix web router test build 2023-03-21 08:22:40 -05:00
.gitignore chore: move tests out of core and into the top level crate 2022-03-02 22:48:22 -05:00
Cargo.toml fix: Remove duplicated doc links and improved some descriptions (#1167) 2023-07-08 11:04:27 -05: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 Router book to reflect crate separation and need for web feature. (#873) 2023-03-10 07:07:53 -06:00
usage.md chore: rename all &cx to cx, make clipppy happy 2022-12-07 13:11:40 -08:00
webdriver.json fix some newlines 2022-02-03 09:28:06 +01:00

Dioxus Router

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

Dioxus Router is a first-party Router for all your Dioxus Apps. It provides a React-Router-style interface using somewhat loose typing rules.

fn app() {
    cx.render(rsx! {
        Router {
            Route { to: "/", Component {} },
            Route { to: "/blog", Blog {} },
            Route { to: "/blog/:id", BlogPost {} },
        }
    })
}

You need to enable the right features for the platform you're targeting since these are not determined automatically!

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.