feat: pull children out of component definition

This commit is contained in:
Jonathan Kelley committed 2021-11-01 13:32:01 -04:00
1 parent f438bbcfd2
commit 2cf90b6903
4 files changed
+40 -75

No files matched your search

+5 -6
View File
@@ -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)]