This commit is contained in:
Miles Murgaw committed 2022-02-15 13:39:02 -05:00
commit 2fea2fb13a
21 files changed
+415 -383

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ fn Child(cx: Scope, name: String) -> Element {
// ✅ Or, use a hashmap with use_ref
```rust
let ages = use_ref(&cx, |_| HashMap::new());
let ages = use_ref(&cx, || HashMap::new());
names.iter().map(|name| {
let age = ages.get(name).unwrap();