Update hooks.md

This commit is contained in:
YuKun Liu authored and GitHub committed 2022-03-06 15:05:21 +08:00
1 parent a4ab2d9de0
commit 485f6f69f0
1 file changed
-1
-1
View File
@@ -139,7 +139,6 @@ fn Child(cx: Scope, name: String) -> Element {
}
// ✅ Or, use a hashmap with use_ref
```rust
let ages = use_ref(&cx, || HashMap::new());
names.iter().map(|name| {