Function router

Source
pub fn router<R>(init: impl FnOnce() -> RouterConfig<R>) -> impl IntoElement
where R: Routable + Clone,
Expand description

A component that renders the current route.