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
@@ -8,7 +8,7 @@ fn main() {
fn app() -> Element {
let mut count = use_signal(|| 0);
use_future!(|| async move {
use_future(|| async move {
loop {
tokio::time::sleep(std::time::Duration::from_millis(10)).await;
count += 1;
@@ -16,7 +16,7 @@ fn app() -> Element {
}
});
cx.render(rsx! {
rsx! {
div { "High-Five counter: {count}" }
})
}
}