mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-19 09:03:13 +00:00
15 lines
323 B
Rust
15 lines
323 B
Rust
use dioxus_core::prelude::*;
|
|
|
|
fn main() {
|
|
let mut dom = VirtualDom::new(App);
|
|
dom.rebuild();
|
|
}
|
|
|
|
const App: FC<()> = |(cx, props)| {
|
|
let id = cx.scope_id();
|
|
// cx.submit_task(Box::pin(async move { id }));
|
|
|
|
// let (handle, contents) = use_task(cx, || async { "hello world".to_string() });
|
|
|
|
todo!()
|
|
};
|