Feat: index.html

This commit is contained in:
Jonathan Kelley committed 2021-01-29 12:09:02 -05:00
1 parent a2406b33d6
commit 689e017108
14 files changed
+1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
```rust
fn Example(ctx: &mut Context<()>) -> VNode {
let service = use_combubulator(ctx);
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>
}
}
```