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
@@ -6,16 +6,16 @@ fn state_shares() {
fn app() -> Element {
provide_context(generation() as i32);
render!(child_1 {})
rsx!(child_1 {})
}
fn child_1() -> Element {
render!(child_2 {})
rsx!(child_2 {})
}
fn child_2() -> Element {
let value = consume_context::<i32>().unwrap();
render!("Value is {value}")
rsx!("Value is {value}")
}
let mut dom = VirtualDom::new(app);