Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrxiaozhuox/dioxus-retrouter
Dioxus Router (old style router)
https://github.com/mrxiaozhuox/dioxus-retrouter
Last synced: 18 days ago
JSON representation
Dioxus Router (old style router)
- Host: GitHub
- URL: https://github.com/mrxiaozhuox/dioxus-retrouter
- Owner: mrxiaozhuox
- License: mit
- Created: 2023-12-24T07:42:26.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-24T07:57:12.000Z (11 months ago)
- Last Synced: 2024-10-11T01:51:05.585Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Dioxus Retrouter
> code copied from [Dioxus 0.3.2 Router](https://github.com/DioxusLabs/dioxus/tree/v0.3.2/packages/router)
## Overview
This repoistory use for maintain retro-style Dioxus router (before 0.4), I think the old version of router is more friendly to dynamic router.
```rust, ignore
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](https://github.com/dioxuslabs/dioxus/issues).
- Join the discord and ask questions!## License
This project is licensed under the [MIT license].[mit license]: https://github.com/DioxusLabs/dioxus/blob/master/LICENSE-MIT
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.