소스 검색

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
 // ✅ 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| {
 names.iter().map(|name| {