examples: upgrade to new version of dioxus core.

also add the inline_props macro
This commit is contained in:
Jonathan Kelley committed 2021-12-25 17:18:05 -05:00
1 parent 21e00c114e
commit cda759c659
41 files changed
+556 -253

No files matched your search

+4 -4
View File
@@ -5,11 +5,11 @@ use dioxus_html as dioxus_elements;
fn main() {}
fn App(cx: Scope<()>) -> Element {
fn app(cx: Scope) -> Element {
cx.render(rsx!(div {
App2 {
app2 (
p: "asd"
}
)
}))
}
@@ -18,7 +18,7 @@ struct Borrowed<'a> {
p: &'a str,
}
fn App2<'a>(cx: Scope<'a, Borrowed<'a>>) -> Element {
fn app2<'a>(cx: Scope<'a, Borrowed<'a>>) -> Element {
let g = eat2(&cx);
rsx!(cx, "")
}