depreciate the render macro

This commit is contained in:
Evan Almloff committed 2024-01-16 13:18:46 -06:00
1 parent 90d0164b9e
commit e65c5f0eb3
148 files changed
+459 -458

No files matched your search

+3 -3
View File
@@ -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();