diff --git a/src/content/learn/lifecycle-of-reactive-effects.md b/src/content/learn/lifecycle-of-reactive-effects.md index 8e962ae8f1..797ecbdd59 100644 --- a/src/content/learn/lifecycle-of-reactive-effects.md +++ b/src/content/learn/lifecycle-of-reactive-effects.md @@ -226,7 +226,7 @@ function ChatRoom({ roomId }) { } export default function App() { - const [roomId, setRoomId] = useState('所有'); + const [roomId, setRoomId] = useState('综合'); const [show, setShow] = useState(false); return ( <> @@ -253,7 +253,7 @@ export default function App() { ```js chat.js export function createConnection(serverUrl, roomId) { - // 真正的实现实际上会连接到服务器 + // 实际的实现将会连接到服务器 return { connect() { console.log('✅ 连接到 "' + roomId + '" 房间,位于' + serverUrl + '...'); @@ -426,7 +426,7 @@ function ChatRoom({ roomId }) { } export default function App() { - const [roomId, setRoomId] = useState('所有'); + const [roomId, setRoomId] = useState('综合'); return ( <>