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
+1 -1
View File
@@ -50,5 +50,5 @@ fn BenchmarkApp(cx: &Arc<Context>, items: &usize) -> View {
"Hello, world!"
}
}
.view(cx.clone())
.view(&cx)
}
+1 -1
View File
@@ -12,5 +12,5 @@ fn App(cx: &Arc<Context>) -> View {
rsx! {
"Hello World"
}
.view(cx.clone())
.view(&cx)
}
+1 -1
View File
@@ -17,5 +17,5 @@ fn App(cx: &Arc<Context>) -> View {
rsx! {
"Hello, world!"
}
.view(cx.clone())
.view(&cx)
}
+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)
}