mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-23 19:13:08 +00:00
16 lines
384 B
Rust
16 lines
384 B
Rust
use std::time::Duration;
|
|
|
|
use dioxus_core::prelude::*;
|
|
|
|
#[async_std::main]
|
|
async fn main() {
|
|
static App: FC<()> = |(cx, props)| cx.render(LazyNodes::new(|f| f.text(format_args!("hello"))));
|
|
|
|
let mut dom = VirtualDom::new(App);
|
|
|
|
dom.rebuild();
|
|
|
|
let deadline = async_std::task::sleep(Duration::from_millis(50));
|
|
|
|
// let _fut = dom.run_with_deadline(|| deadline.);
|
|
}
|