Skip to content

Commit 53ee160

Browse files
authored
fix: resolve conflicts
1 parent 4fe5a7c commit 53ee160

File tree

1 file changed

+1
-5
lines changed
  • src/content/reference/react

1 file changed

+1
-5
lines changed

src/content/reference/react/use.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,7 @@ root.render(
334334
335335
#### 应该在服务器组件还是客户端组件解析 Promise? {/*resolve-promise-in-server-or-client-component*/}
336336
337-
<<<<<<< HEAD
338-
Promise 可以从服务器组件传递至客户端组件,并且刻意在客户端组件中使用 `use` Hook 解析它。也可以在服务器组件中使用 `await` 解析 Promise,并将所需的数据作为 prop 传递给客户端组件。
339-
=======
340-
A Promise can be passed from a Server Component to a Client Component and resolved in the Client Component with the `use` Hook. You can also resolve the Promise in a Server Component with `await` and pass the required data to the Client Component as a prop.
341-
>>>>>>> 721479b34668cb1bdfe2e312a86c04f08cd5d659
337+
Promise 可以从服务器组件传递至客户端组件,并且可以在客户端组件中使用 `use` Hook 解析它。也可以在服务器组件中使用 `await` 解析 Promise,并将所需的数据作为 prop 传递给客户端组件。
342338
343339
```js
344340
export default function App() {

0 commit comments

Comments
 (0)