feat: pull children out of component definition
This commit is contained in:
1 parent
f438bbcfd2
commit
2cf90b6903
4 files changed
+40
-75
No files matched your search
@@ -208,12 +208,11 @@ fn create_simple() {
|
||||
#[test]
|
||||
fn create_components() {
|
||||
static App: FC<()> = |(cx, props)| {
|
||||
todo!()
|
||||
// cx.render(rsx! {
|
||||
// Child { "abc1" }
|
||||
// Child { "abc2" }
|
||||
// Child { "abc3" }
|
||||
// })
|
||||
cx.render(rsx! {
|
||||
Child { "abc1" }
|
||||
Child { "abc2" }
|
||||
Child { "abc3" }
|
||||
})
|
||||
};
|
||||
|
||||
#[derive(Props)]
|
||||
|
||||
Reference in new issue
Block a user