We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60e1f4 commit b8dc453Copy full SHA for b8dc453
src/content/learn/reusing-logic-with-custom-hooks.md
@@ -1233,7 +1233,7 @@ function useMount(fn) {
1233
function ChatRoom({ roomId }) {
1234
const [serverUrl, setServerUrl] = useState('https://localhost:1234');
1235
1236
- // ✅ 好:通过用途分割的两个原始Effect
+ // ✅ 好:通过用途分割的两个原始 Effect
1237
1238
useEffect(() => {
1239
const connection = createConnection({ serverUrl, roomId });
@@ -1255,7 +1255,7 @@ function ChatRoom({ roomId }) {
1255
1256
1257
1258
- // ✅ 非常好:以用途命名的自定义Hook
+ // ✅ 非常好:以用途命名的自定义 Hook
1259
useChatRoom({ serverUrl, roomId });
1260
useImpressionLog('visit_chat', { roomId });
1261
// ...
0 commit comments