docs: more docs

This commit is contained in:
Jonathan Kelley committed 2021-06-26 02:05:20 -04:00
1 parent 0f0fc3e4b8
commit 0826fdfee1
14 files changed
+59 -270

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
```rust
fn Example(cx: &mut Context<()>) -> VNode {
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>
}
}
```