remove cx.render
This commit is contained in:
159 files changed
+600
-658
No files matched your search
+5
-5
@@ -5,7 +5,7 @@ fn main() {
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
let future = use_future((), |_| async move {
|
||||
let future = use_future(|_| async move {
|
||||
let eval = eval(
|
||||
r#"
|
||||
dioxus.send("Hi from JS!");
|
||||
@@ -23,11 +23,11 @@ fn app() -> Element {
|
||||
});
|
||||
|
||||
match future.value() {
|
||||
Some(v) => cx.render(rsx!(
|
||||
Some(v) => rsx!(
|
||||
p { "{v}" }
|
||||
)),
|
||||
_ => cx.render(rsx!(
|
||||
),
|
||||
_ => rsx!(
|
||||
p { "hello" }
|
||||
)),
|
||||
),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user