depreciate the render macro
This commit is contained in:
1 parent
90d0164b9e
commit
e65c5f0eb3
148 files changed
+459
-458
No files matched your search
@@ -6,7 +6,7 @@ use dioxus_core::{ElementId, NoOpMutations};
|
||||
fn text_diff() {
|
||||
fn app() -> Element {
|
||||
let gen = generation();
|
||||
render!( h1 { "hello {gen}" } )
|
||||
rsx!( h1 { "hello {gen}" } )
|
||||
}
|
||||
|
||||
let mut vdom = VirtualDom::new(app);
|
||||
@@ -37,8 +37,8 @@ fn element_swap() {
|
||||
let gen = generation();
|
||||
|
||||
match gen % 2 {
|
||||
0 => render!( h1 { "hello 1" } ),
|
||||
1 => render!( h2 { "hello 2" } ),
|
||||
0 => rsx!( h1 { "hello 1" } ),
|
||||
1 => rsx!( h2 { "hello 2" } ),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user