diff --git a/website/docs/concepts/router.mdx b/website/docs/concepts/router.mdx index 75613394c12..ec313daeb9b 100644 --- a/website/docs/concepts/router.mdx +++ b/website/docs/concepts/router.mdx @@ -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`: - - -```toml -yew-router = { git = "https://github.com/yewstack/yew.git" } +```sh +cargo add yew-router ``` The utilities needed are provided under `yew_router::prelude`,