mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-01-06 09:48:46 +00:00
20 lines
477 B
Rust
20 lines
477 B
Rust
// use dioxus_core::prelude::*;
|
|
// use dioxus_web::WebsysRenderer;
|
|
|
|
// fn main() {
|
|
// wasm_bindgen_futures::spawn_local(WebsysRenderer::start(Example));
|
|
// }
|
|
|
|
// fn Example(cx: Context, props: ()) -> VNode {
|
|
// let user_data = use_sql_query(&cx, USER_DATA_QUERY);
|
|
|
|
// cx.render(rsx! {
|
|
// h1 { "Hello, {username}"}
|
|
// button {
|
|
// "Delete user"
|
|
// onclick: move |_| user_data.delete()
|
|
// }
|
|
// })
|
|
// }
|
|
|
|
fn main() {}
|