Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less error prone yew-router instructions #3552

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions website/docs/concepts/router.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ default behavior of requesting a different remote resource when a link is clicke
locally to point to a valid route in your application. The router then detects this change and then decides what to
render.

Yew provides router support in the `yew-router` crate. To start using it, add the dependency to your `Cargo.toml`
Yew provides router support in the `yew-router` crate. To start using it, add the dependency to your `Cargo.toml`:

<!-- Reminder: fix this when we release a new version of yew -->

```toml
yew-router = { git = "https://github.com/yewstack/yew.git" }
```sh
cargo add yew-router
```

The utilities needed are provided under `yew_router::prelude`,
Expand Down