docs: add examples
All checks were successful
continuous-integration/drone/push Build is passing

this is to show how we can use closures in the mad component context. It isn't super pretty because of the async closure, so we need to show the slighly complicated syntax

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-08-07 17:09:45 +02:00
parent 1446f4c3cf
commit b78423377c
2 changed files with 30 additions and 2 deletions

View File

@@ -41,3 +41,11 @@ async fn main() -> anyhow::Result<()> {
}
```
## Examples
Can be found (here)[crates/mad/examples]
- basic
- fn
- signals
- error_log