dioxus/packages/core/examples/vdom_usage.rs

17 lines
382 B
Rust
Raw Normal View History

use std::time::Duration;
use dioxus_core::prelude::*;
#[async_std::main]
async fn main() {
2021-09-22 06:44:01 +00:00
static App: FC<()> = |cx, props| cx.render(LazyNodes::new(|f| f.text(format_args!("hello"))));
let mut dom = VirtualDom::new(App);
dom.rebuild();
2021-09-01 04:57:04 +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.);
}