change empty outlet to placeholder instead of div

This commit is contained in:
Adrian Wannenmacher committed 2022-12-13 16:01:53 +01:00
1 parent af6362ce3e
commit 83f6984b0a
1 file changed
+2 -2
+2 -2
View File
@@ -108,8 +108,8 @@ pub fn Outlet(cx: Scope<OutletProps>) -> Element {
cx.render(match content {
Some(content) => {
let X = content.0;
rsx! { X { } }
rsx!(X {})
}
None => rsx! { div { } },
None => rsx!(()),
})
}