forked from DioxusLabs/dioxus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Router book to reflect crate separation and need for
web
fea…
…ture. (DioxusLabs#873)
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# Dioxus Router: Introduction | ||
|
||
Whether or not you're building a website, desktop app, or mobile app, organizing your app's views into "pages" can be an effective method for organization and maintainability. | ||
|
||
Dioxus comes with a router built-in. To start utilizing Dioxus Router, enable the ``router`` feature in your ``Cargo.toml`` file. | ||
```toml | ||
[dependencies] | ||
dioxus = { version = "x.x.x", features = [.., "router"] } | ||
``` | ||
The `dioxus-router` crate contains the Router module. To add it to your project run: | ||
|
||
cargo add dioxus-router | ||
|
||
> **Be sure to include the `web` feature (`--feature web`) for deployment into a browser!** | ||
In this book you'll find a short [guide](./guide/index.md) to get up to speed with Dioxus Router, as well as the router's [reference](./reference/index.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters