partially restore spreading attributes

This commit is contained in:
Evan Almloff committed 2024-01-14 15:21:19 -06:00
1 parent 2470a46511
commit 36e9eb1160
19 files changed
+252 -194

No files matched your search

+3 -6
View File
@@ -7,7 +7,7 @@ use dioxus_core::ElementId;
#[test]
fn empty_fragment_creates_nothing() {
fn app() -> Element {
render!(())
render!({ () })
}
let mut vdom = VirtualDom::new(app);
@@ -55,7 +55,7 @@ fn fragments_nested() {
}}
}}
}}
))
)
});
assert_eq!(
@@ -77,10 +77,7 @@ fn fragments_across_components() {
fn demo_child() -> Element {
let world = "world";
render! {
"hellO!"
{world}
}
render! { "hellO!", {world} }
}
assert_eq!(