fix queries

This commit is contained in:
Evan Almloff committed 2023-06-01 11:09:51 -05:00
1 parent 2f473f7c97
commit 037a248ad9
294 files changed
+60706 -263

No files matched your search

+11 -25
View File
@@ -1,41 +1,27 @@
# Introduction
Whether or not you are building a website, desktop app, or mobile app,
> If you are not familiar with Dioxus itself, check out the [Dioxus book](https://dioxuslabs.com/docs/0.3/guide/en/) first.
Whether you are building a website, desktop app, or mobile app,
splitting your app's views into "pages" can be an effective method for
organization and maintainability.
For this purpose, Dioxus provides a router. To start utilizing it, add it as a
dependency in your `Cargo.toml` file:
```toml
[dependencies]
# use this for native apps
dioxus-router = "*"
#use this for web apps
dioxus-router = { version = "*", features = ["web"] }
For this purpose, Dioxus provides a router. Use the `cargo add` command to add the dependency:
# in both cases replace * with the current version
```
You can also use the `cargo` command to add the dependency:
```sh
$ cargo add dioxus-router
$ cargo add dioxus-router --features web
cargo add dioxus-router
```
> If you are not familiar with Dioxus itself, check out the [Dioxus book][db]
> first.
This book is intended to get you up to speed with Dioxus Router. It is split
into two sections:
1. The [Features](./features/index.md) part explains individual features in
1. The [Reference](./reference/index.md) part explains individual features in
depth. You can read it start to finish, or you can read individual chapters
in whatever order you want.
2. If you prefer a learning-by-doing approach, you can check ouf the
_[example project](./example/introduction.md)_. It guides you through
2. If you prefer a learning-by-doing approach, you can check out the
_[example project](./example/index.md)_. It guides you through
creating a dioxus app, setting up the router and using some of its
functionality.
> Please note that this is not the only documentation for the Dioxus Router. You
> can also check out the [API Docs][api].
[api]: https://docs.rs/dioxus-router/
[db]: https://dioxuslabs.com/guide/
> can also check out the [API Docs](https://docs.rs/dioxus-router/).