Skip to content

Commit b0f13e9

Browse files
authored
docs: add comment tranalse in rules-of-hooks.md (#1843)
2 parents 5f0142a + d08eb28 commit b0f13e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/rules/rules-of-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function FriendList() {
129129
const [onlineStatus, setOnlineStatus] = useOnlineStatus(); //
130130
}
131131

132-
function setOnlineStatus() { //Not a component or custom Hook!
132+
function setOnlineStatus() { //没有组件或自定义 Hook
133133
const [onlineStatus, setOnlineStatus] = useOnlineStatus();
134134
}
135135
```

0 commit comments

Comments
 (0)