From d591e65d88fc97b022aed3db374ee4fe8ea360f1 Mon Sep 17 00:00:00 2001 From: Kaede Hoshikawa Date: Sat, 18 Dec 2021 22:06:12 +0900 Subject: [PATCH] Update documentation. --- website/docs/concepts/router.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/website/docs/concepts/router.md b/website/docs/concepts/router.md index 17c6c5f5c50..b04bc7c58b0 100644 --- a/website/docs/concepts/router.md +++ b/website/docs/concepts/router.md @@ -44,10 +44,13 @@ current URL and passes it to the `render` callback. The callback then decides wh matched, the router navigates to the path with `not_found` attribute. If no route is specified, nothing is rendered, and a message is logged to console stating that no route was matched. -Finally, you need to register the `` component as a context. -`` provides location information and navigator to its children. +Finally, you need to register one of the Router context provider components like ``. +It provides location information and navigator to its children. -When using `yew-router` in browser environment, `` is recommended. +:::caution +When using `yew-router` in browser environment, `` is highly recommended. +You can find other router flavours in the [API Reference](https://docs.rs/yew-router/). +::: ```rust use yew_router::prelude::*;