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

+3 -3
View File
@@ -6,10 +6,10 @@ fn main() {
}
fn app() -> Element {
let bg_green = use_state(|| false);
let bg_green = use_signal(|| false);
let color = if *bg_green.get() { "green" } else { "red" };
cx.render(rsx! {
rsx! {
div{
width: "100%",
background_color: "{color}",
@@ -89,5 +89,5 @@ fn app() -> Element {
height: "10%",
}
}
})
}
}