depreciate the render macro
This commit is contained in:
1 parent
90d0164b9e
commit
e65c5f0eb3
148 files changed
+459
-458
No files matched your search
@@ -52,14 +52,14 @@ fn events_propagate() {
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
render! {
|
||||
rsx! {
|
||||
div { onclick: move |_| {
|
||||
println!("top clicked");
|
||||
*CLICKS.lock().unwrap() += 1;
|
||||
},
|
||||
|
||||
{vec![
|
||||
render! {
|
||||
rsx! {
|
||||
problematic_child {}
|
||||
}
|
||||
].into_iter()}
|
||||
@@ -68,7 +68,7 @@ fn app() -> Element {
|
||||
}
|
||||
|
||||
fn problematic_child() -> Element {
|
||||
render! {
|
||||
rsx! {
|
||||
button { onclick: move |evt| {
|
||||
println!("bottom clicked");
|
||||
let mut clicks = CLICKS.lock().unwrap();
|
||||
|
||||
Reference in new issue
Block a user