2021-08-25 16:42:50 +00:00
|
|
|
use std::time::Duration;
|
|
|
|
|
2021-11-01 06:41:23 +00:00
|
|
|
use dioxus_core::{lazynodes::LazyNodes, prelude::*};
|
2021-08-25 16:42:50 +00:00
|
|
|
|
2021-11-01 06:22:08 +00:00
|
|
|
// #[async_std::main]
|
|
|
|
fn main() {
|
2021-10-30 22:23:28 +00:00
|
|
|
static App: FC<()> =
|
2021-11-01 06:41:23 +00:00
|
|
|
|(cx, props)| cx.render(Some(LazyNodes::new(move |f| f.text(format_args!("hello")))));
|
2021-08-25 16:42:50 +00:00
|
|
|
|
|
|
|
let mut dom = VirtualDom::new(App);
|
|
|
|
|
|
|
|
dom.rebuild();
|
|
|
|
|
2021-11-01 06:22:08 +00:00
|
|
|
// let deadline = async_std::task::sleep(Duration::from_millis(50));
|
2021-09-22 06:44:01 +00:00
|
|
|
|
|
|
|
// let _fut = dom.run_with_deadline(|| deadline.);
|
2021-08-25 16:42:50 +00:00
|
|
|
}
|