dioxus/packages/web/examples/query.rs

21 lines
482 B
Rust
Raw Normal View History

// use dioxus_core::prelude::*;
// use dioxus_web::WebsysRenderer;
// fn main() {
// wasm_bindgen_futures::spawn_local(WebsysRenderer::start(Example));
// }
// fn Example(ctx: Context, props: ()) -> DomTree {
// let user_data = use_sql_query(&ctx, USER_DATA_QUERY);
// ctx.render(rsx! {
// h1 { "Hello, {username}"}
// button {
// "Delete user"
// onclick: move |_| user_data.delete()
// }
// })
// }
fn main() {}