wip: working on async diff

This commit is contained in:
Jonathan Kelley committed 2021-08-17 22:25:09 -04:00
1 parent 882d69571d
commit f41cff571f
7 files changed
+198 -109

No files matched your search

+8 -1
View File
@@ -5,7 +5,7 @@ use dioxus::ssr;
fn main() {
let mut vdom = VirtualDom::new(App);
vdom.rebuild_in_place().expect("Rebuilding failed");
// vdom.rebuild_in_place().expect("Rebuilding failed");
println!("{}", ssr::render_vdom(&vdom, |c| c));
}
@@ -17,3 +17,10 @@ static App: FC<()> = |cx| {
}
))
};
struct MyProps<'a> {
text: &'a str,
}
fn App2<'a>(cx: Context<'a, MyProps>) -> DomTree<'a> {
None
}