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

+2 -2
View File
@@ -3,7 +3,7 @@ use dioxus::prelude::*;
#[test]
fn static_inner_html() {
fn app() -> Element {
render! { div { dangerous_inner_html: "<div>1234</div>" } }
rsx! { div { dangerous_inner_html: "<div>1234</div>" } }
}
let mut dom = VirtualDom::new(app);
@@ -16,7 +16,7 @@ fn static_inner_html() {
fn dynamic_inner_html() {
fn app() -> Element {
let inner_html = "<div>1234</div>";
render! { div { dangerous_inner_html: "{inner_html}" } }
rsx! { div { dangerous_inner_html: "{inner_html}" } }
}
let mut dom = VirtualDom::new(app);