瀏覽代碼

Update hooks.md

YuKun Liu 3 年之前
父節點
當前提交
485f6f69f0
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      docs/guide/src/interactivity/hooks.md

+ 0 - 1
docs/guide/src/interactivity/hooks.md

@@ -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| {