feat: use dom to allow context injection

This commit is contained in:
Jonathan Kelley committed 2022-12-30 22:10:06 -05:00
1 parent 880aa737a6
commit e3a8e44a69
2 files changed
+3 -4

No files matched your search

+2 -1
View File
@@ -12,7 +12,8 @@ fn app(cx: Scope) -> Element {
div {
button {
onclick: move |_| {
window.new_window(popup, (), Default::default());
let dom = VirtualDom::new_with_props(app, props);
window.new_window(dom, Default::default());
},
"New Window"
}