We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b213ba commit 61743deCopy full SHA for 61743de
content/docs/hooks-custom.md
@@ -36,7 +36,7 @@ function FriendStatus(props) {
36
}
37
```
38
39
-现在比如说我们的聊天应用有一个联系人列表,当用户在线时需要把名字设置为绿色。我们可以把上面类似的逻辑复制并粘贴到 `FriendListItem` 组件中来,但这并不是理想的做法:
+现在我们假设聊天应用中有一个联系人列表,当用户在线时需要把名字设置为绿色。我们可以把上面类似的逻辑复制并粘贴到 `FriendListItem` 组件中来,但这并不是理想的解决方案:
40
41
```js{4-15}
42
import React, { useState, useEffect } from 'react';
0 commit comments