wip: queue mods
This commit is contained in:
1 parent
ea7ab5f765
commit
66319cf6e2
4 files changed
+76
-26
No files matched your search
@@ -18,5 +18,17 @@ fn app(cx: Scope) -> Element {
|
||||
onclick: move |_| val.set("invalid"),
|
||||
"Set an invalid number"
|
||||
}
|
||||
(0..5).map(|i| rsx! {
|
||||
demo_c { x: i }
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn demo_c(cx: Scope, x: i32) -> Element {
|
||||
cx.render(rsx! {
|
||||
h1 {
|
||||
"asdasdasdasd {x}"
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user