Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo #1487

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/reference/react/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export default function App() {
}
```

要使用 Promise 的 <CodeStep step={1}>`catch`</CodeStep> 方法,请在 Promise 对象上调用 <CodeStep step={1}>`catch`</CodeStep>。<CodeStep step={1}>`catch`</CodeStep> 接受一个参数:一个接受错误消息作为参数的函数。由传递给 <CodeStep step={1}>`catch`</CodeStep> 的函数 <CodeStep step={2}>返回</CodeStep> 的任何内容都将视为 Promise 的解决值。<CodeStep step={2}>返回</CodeStep>。
要使用 Promise 的 <CodeStep step={1}>`catch`</CodeStep> 方法,请在 Promise 对象上调用 <CodeStep step={1}>`catch`</CodeStep>。<CodeStep step={1}>`catch`</CodeStep> 接受一个参数:一个接受错误消息作为参数的函数。由传递给 <CodeStep step={1}>`catch`</CodeStep> 的函数 <CodeStep step={2}>返回</CodeStep> 的任何内容都将视为 Promise 的解决值。

---

Expand Down
Loading