diff --git a/packages/router/src/components/outlet.rs b/packages/router/src/components/outlet.rs index bddb11c46..b4aa47e58 100644 --- a/packages/router/src/components/outlet.rs +++ b/packages/router/src/components/outlet.rs @@ -108,8 +108,8 @@ pub fn Outlet(cx: Scope) -> Element { cx.render(match content { Some(content) => { let X = content.0; - rsx! { X { } } + rsx!(X {}) } - None => rsx! { div { } }, + None => rsx!(()), }) }