Rsx children scope placing

This commit is contained in:
2026-01-30 23:13:05 +01:00
parent 74e33fa4c2
commit e31c17ba41
4 changed files with 46 additions and 12 deletions
+5 -1
View File
@@ -17,5 +17,9 @@ fn App(cx: &Arc<Context>) -> View {
#[component]
fn MyComponent(cx: &Arc<Context>, children: &Rsx) -> View {
children.view(&cx)
rsx! {
"Simple"
@{children}
}
.view(&cx)
}