Module yew_router::prelude

source ·
Expand description

Prelude module to be imported when working with yew-router.

This module re-exports the frequently used types from the crate.

Re-exports

pub use crate::navigator::NavigationError;
pub use crate::navigator::NavigationResult;
pub use crate::navigator::Navigator;
pub use crate::scope_ext::LocationHandle;
pub use crate::scope_ext::NavigatorHandle;
pub use crate::scope_ext::RouterScopeExt;
pub use crate::Routable;
pub use crate::Routable;
pub use crate::BrowserRouter;
pub use crate::HashRouter;
pub use crate::Router;
pub use crate::Switch;
pub use crate::hooks::*;

Structs

A wrapper around <a> tag to be used with Router
A history location.
A component that will redirect to specified route when rendered.