Evan Almloff ed4709101c fix duplicate example names 2 năm trước cách đây
..
examples ed4709101c fix duplicate example names 2 năm trước cách đây
src 80a8310297 switch debug logs to trace in the router and web crates 2 năm trước cách đây
tests e6920e9b34 chore: fix web 2 năm trước cách đây
.gitignore e04a6d63a5 chore: move tests out of core and into the top level crate 3 năm trước cách đây
CHANGELOG.md 56f3002aed feat: add changelogs 3 năm trước cách đây
Cargo.toml ec8b77ab32 Remove unused simple-logger 2 năm trước cách đây
Makefile.toml bd565bb65f improve Makefile tests 3 năm trước cách đây
README.md eee6cbabb2 Update Router book to reflect crate separation and need for `web` feature. (#873) 2 năm trước cách đây
usage.md 4eefc3f854 chore: rename all &cx to cx, make clipppy happy 2 năm trước cách đây
webdriver.json ee49fc27ff fix some newlines 3 năm trước cách đây

README.md

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.