{ §ion.title }
diff --git a/examples/router/src/switch.rs b/examples/router/src/switch.rs index 1303ada9d7c..28c1bb2fa71 100644 --- a/examples/router/src/switch.rs +++ b/examples/router/src/switch.rs @@ -1,7 +1,4 @@ -use yew::{ - virtual_dom::{Transformer, VComp}, - web_sys::Url, -}; +use yew::{html::IntoPropValue, web_sys::Url}; use yew_router::{components::RouterAnchor, prelude::*, switch::Permissive}; #[derive(Clone, Debug, Switch)] @@ -79,9 +76,9 @@ impl Switch for PublicUrlSwitch { // this allows us to pass `AppRoute` to components which take `PublicUrlSwitch`. -impl Transformer{ format!("Post #{}", self.id) }
{text}
-