Frontend generate children

This commit is contained in:
2026-01-30 23:00:02 +01:00
parent 03191b0a57
commit 74e33fa4c2
5 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ fn App(cx: &Arc<Context>) -> View {
rsx! {
MyComponent { "Hello world!" }
}
.view(cx.clone())
.view(&cx)
}
#[component]
fn MyComponent(cx: &Arc<Context>, children: &Rsx) -> View {
children.view(cx.clone())
children.view(&cx)
}