Skip to content

Commit b8dc453

Browse files
authored
Update reusing-logic-with-custom-hooks.md
quick updates for adding spacing
1 parent b60e1f4 commit b8dc453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/learn/reusing-logic-with-custom-hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ function useMount(fn) {
12331233
function ChatRoom({ roomId }) {
12341234
const [serverUrl, setServerUrl] = useState('https://localhost:1234');
12351235

1236-
// ✅ 好:通过用途分割的两个原始Effect
1236+
// ✅ 好:通过用途分割的两个原始 Effect
12371237

12381238
useEffect(() => {
12391239
const connection = createConnection({ serverUrl, roomId });
@@ -1255,7 +1255,7 @@ function ChatRoom({ roomId }) {
12551255
function ChatRoom({ roomId }) {
12561256
const [serverUrl, setServerUrl] = useState('https://localhost:1234');
12571257

1258-
// ✅ 非常好:以用途命名的自定义Hook
1258+
// ✅ 非常好:以用途命名的自定义 Hook
12591259
useChatRoom({ serverUrl, roomId });
12601260
useImpressionLog('visit_chat', { roomId });
12611261
// ...

0 commit comments

Comments
 (0)