fix tests around children elements

This commit is contained in:
Jonathan Kelley committed 2024-01-10 23:42:36 -08:00
1 parent b8061d6d14
commit 8a77d2560e
4 files changed
+26 -8

No files matched your search

+4 -1
View File
@@ -11,8 +11,11 @@ fn app(cx: Scope) -> Element {
let class = "class";
let id = "id";
// todo: i'd like it for children to be inferred
let children = render! { "Child" };
render! {
div { class, id }
div { class, id, {children} }
Component { a, b, c }
Component { a, ..ComponentProps { a: 1, b: 2, c: 3 } }
}