mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 05:03:06 +00:00
17 lines
427 B
Rust
17 lines
427 B
Rust
use std::time::Duration;
|
|
|
|
use dioxus_core::{lazynodes::LazyNodes, prelude::*};
|
|
|
|
// #[async_std::main]
|
|
fn main() {
|
|
static App: FC<()> =
|
|
|(cx, props)| cx.render(Some(LazyNodes::new(move |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.);
|
|
}
|