Skip to content

Commit

Permalink
docs: update link in use.md (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
dukeluo authored Apr 20, 2024
1 parent 8c1d7a0 commit 9d77238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function MessageComponent({ messagePromise }) {
当使用 Promise 调用 `use` Hook 时,它会与 [`Suspense`](/reference/react/Suspense) 和 [错误边界](/reference/react/Component#catching-rendering-errors-with-an-error-boundary) 集成。当传递给 `use` 的 Promise 处于 pending 时,调用 `use` 的组件也会 **挂起**。如果调用 `use` 的组件被包装在 Suspense 边界内,将显示后备 UI。一旦 Promise 被解决,Suspense 后备方案将被使用 `use` Hook 返回的数据替换。如果传递给 `use` 的 Promise 被拒绝,将显示最近错误边界的后备 UI。
[参见下方更多示例)(#usage)。
[参见下方更多示例](#usage)。
#### 参数 {/*parameters*/}
Expand Down

0 comments on commit 9d77238

Please sign in to comment.