wip: implement lazy nodes properly

This commit is contained in:
Jonathan Kelley committed 2021-11-01 02:41:23 -04:00
1 parent 7b97e009ec
commit 3e07214272
7 files changed
+47 -67

No files matched your search

+2 -2
View File
@@ -1,11 +1,11 @@
use std::time::Duration;
use dioxus_core::prelude::*;
use dioxus_core::{lazynodes::LazyNodes, prelude::*};
// #[async_std::main]
fn main() {
static App: FC<()> =
|(cx, props)| cx.render(Some(Box::new(move |f| f.text(format_args!("hello")))));
|(cx, props)| cx.render(Some(LazyNodes::new(move |f| f.text(format_args!("hello")))));
let mut dom = VirtualDom::new(App);