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

+3 -7
View File
@@ -33,11 +33,7 @@ fn main() {
AppendChildren { many: 1 },
];
dioxus_desktop::run(APP, (), |c| c.with_edits(edits));
}
let app: Component<()> = |cx| rsx!(cx, div { "some app" });
const APP: Component<()> = |(cx, _props)| {
rsx!(cx, div {
"some app"
})
};
dioxus_desktop::run(app, (), |c| c.with_edits(edits));
}