remove cx.render

This commit is contained in:
Jonathan Kelley committed 2024-01-13 21:12:21 -08:00
1 parent fae0b08e61
commit 1dde044697
159 files changed
+600 -658

No files matched your search

+4 -4
View File
@@ -11,7 +11,7 @@ fn main() {
}
fn app() -> Element {
cx.render(rsx! {
rsx! {
Button {
a: "asd".to_string(),
c: "asd".to_string(),
@@ -30,7 +30,7 @@ fn app() -> Element {
c: "asd".to_string(),
d: Some("asd".to_string()),
}
})
}
}
type SthElse<T> = Option<T>;
@@ -52,7 +52,7 @@ struct ButtonProps {
}
fn Button(cx: Scope<ButtonProps>) -> Element {
cx.render(rsx! {
rsx! {
button {
"{cx.props.a} | "
"{cx.props.b:?} | "
@@ -60,5 +60,5 @@ fn Button(cx: Scope<ButtonProps>) -> Element {
"{cx.props.d:?} | "
"{cx.props.e:?}"
}
})
}
}