fix: Update dioxus-router docs

This commit is contained in:
marc2332 committed 2024-02-26 21:46:00 +01:00
1 parent 451a8f231e
commit d3b9b764e0
3 files changed
+6 -10

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ use dioxus_lib::prelude::{try_consume_context, use_hook};
use crate::prelude::{Navigator, RouterContext};
/// A hook that provides access to the navigator to change the router history. Unlike [`use_router`], this hook will not cause a rerender when the current route changes
/// A hook that provides access to the navigator to change the router history.
///
/// > The Routable macro will define a version of this hook with an explicit type.
///
@@ -26,7 +26,7 @@ use crate::prelude::{Navigator, RouterContext};
///
/// #[component]
/// fn Index() -> Element {
/// let navigator = use_navigator(&cx);
/// let navigator = use_navigator();
///
/// rsx! {
/// button {