docs: remove all usages of static closure syntax and update readme

This commit is contained in:
Jonathan Kelley committed 2022-01-02 18:35:38 -05:00
1 parent d1560450ba
commit cafb7df736
66 files changed
+792 -2019

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ fn App(cx: Scope) -> Element {
Tiny components:
```rust
static App: Component = |cx, _| rsx!(cx, div {"hello world!"});
static App: Component = |cx| rsx!(cx, div {"hello world!"});
```
Borrowed prop contents: