mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 05:03:06 +00:00
430 B
430 B
fn Example(cx: &mut Context<()>) -> DomTree {
let service = use_combubulator(cx);
let Status { name, pending, count } = service.info();
html! {
<div>
<p> "Hello, {name}!" </p>
<p> "Status: {pending}!" </p>
<p> "Count {count}!" </p>
<button onclick=|_| service.update()>
"Refresh services"
</button>
</div>
}
}