mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 22:50:19 +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() {}
|