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
@@ -3,7 +3,7 @@ use dioxus_web::Config;
use web_sys::window;
fn app() -> Element {
cx.render(rsx! {
rsx! {
div { h1 { "thing 1" } }
div { h2 { "thing 2" } }
div {
@@ -17,12 +17,12 @@ fn app() -> Element {
"thing {f}"
}
})}
})
}
}
#[allow(non_snake_case)]
fn Bapp() -> Element {
cx.render(rsx! {
rsx! {
div { h1 { "thing 1" } }
div { h2 { "thing 2" } }
div {
@@ -30,7 +30,7 @@ fn Bapp() -> Element {
"asd"
"asd"
}
})
}
}
fn main() {