feat: tests list

This commit is contained in:
Jonathan Kelley committed 2022-11-22 21:44:20 -08:00
1 parent 9c4abcbea0
commit 09b2ff2736
3 files changed
+53 -8

No files matched your search

+6 -8
View File
@@ -7,12 +7,10 @@ use dioxus_core::ElementId;
fn nested_passthru_creates() {
fn app(cx: Scope) -> Element {
cx.render(rsx! {
Child {
Child {
Child {
div {
"hi"
}
pass_thru {
pass_thru {
pass_thru {
div { "hi" }
}
}
}
@@ -20,8 +18,8 @@ fn nested_passthru_creates() {
}
#[inline_props]
fn Child<'a>(cx: Scope<'a>, children: Element<'a>) -> Element {
cx.render(rsx! { children })
fn pass_thru<'a>(cx: Scope<'a>, children: Element<'a>) -> Element {
cx.render(rsx!(children))
}
let mut dom = VirtualDom::new(app);