mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 13:13:06 +00:00
24 lines
486 B
Rust
24 lines
486 B
Rust
use dioxus_core as dioxus;
|
|
use dioxus_core::prelude::*;
|
|
use dioxus_core_macro::*;
|
|
|
|
use dioxus_html as dioxus_elements;
|
|
|
|
fn main() {
|
|
std::thread::spawn(|| {
|
|
let mut vdom = VirtualDom::new(App);
|
|
let f = async_std::task::block_on(vdom.wait_for_work());
|
|
});
|
|
let a = 10;
|
|
// async_std::task::spawn_blocking(|| async move {
|
|
// });
|
|
}
|
|
|
|
static App: FC<()> = |cx, props| {
|
|
//
|
|
cx.render(rsx!(
|
|
div {
|
|
"hello world!"
|
|
}
|
|
))
|
|
};
|