mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-24 19:43:10 +00:00
20 lines
482 B
Rust
20 lines
482 B
Rust
// 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() {}
|