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

@@ -75,10 +75,10 @@ fn main() {
}
//
fn app() -> Element {
let user_name = use_state(|| "?".to_string());
let permissions = use_state(|| "?".to_string());
let user_name = use_signal(|| "?".to_string());
let permissions = use_signal(|| "?".to_string());
cx.render(rsx! {
rsx! {
div {
button {
onclick: move |_| {
@@ -117,7 +117,7 @@ fn app() -> Element {
}
"Permissions: {permissions}"
}
})
}
}
#[server(GetUserName)]