Skip to content

Commit 07a25b3

Browse files
committed
Capitalize Client/Server Component
Summary of changes: following <#6417>
1 parent 42ca996 commit 07a25b3

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/content/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ We’re working together with Vercel and Shopify to unify bundler support for sh
2828

2929
## Asset Loading {/*asset-loading*/}
3030

31-
Currently, assets like scripts, external styles, fonts, and images are typically preloaded and loaded using external systems. This can make it tricky to coordinate across new environments like streaming, server components, and more.
31+
Currently, assets like scripts, external styles, fonts, and images are typically preloaded and loaded using external systems. This can make it tricky to coordinate across new environments like streaming, Server Components, and more.
3232
We’re looking at adding APIs to preload and load deduplicated external assets through React APIs that work in all React environments.
3333

3434
We’re also looking at having these support Suspense so you can have images, CSS, and fonts that block display until they’re loaded but don’t block streaming and concurrent rendering. This can help avoid [“popcorning“](https://twitter.com/sebmarkbage/status/1516852731251724293) as the visuals pop and layout shifts.

src/content/reference/react/use.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ When passing a Promise from a Server Component to a Client Component, its resolv
334334
335335
#### Should I resolve a Promise in a Server or Client Component? {/*resolve-promise-in-server-or-client-component*/}
336336
337-
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.
337+
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.
338338
339339
```js
340340
export default function App() {

src/content/reference/react/useId.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ You might be wondering why `useId` is better than incrementing a global variable
179179
180180
The primary benefit of `useId` is that React ensures that it works with [server rendering.](/reference/react-dom/server) During server rendering, your components generate HTML output. Later, on the client, [hydration](/reference/react-dom/client/hydrateRoot) attaches your event handlers to the generated HTML. For hydration to work, the client output must match the server HTML.
181181
182-
This is very difficult to guarantee with an incrementing counter because the order in which the client components are hydrated may not match the order in which the server HTML was emitted. By calling `useId`, you ensure that hydration will work, and the output will match between the server and the client.
182+
This is very difficult to guarantee with an incrementing counter because the order in which the Client Components are hydrated may not match the order in which the server HTML was emitted. By calling `useId`, you ensure that hydration will work, and the output will match between the server and the client.
183183
184184
Inside React, `useId` is generated from the "parent path" of the calling component. This is why, if the client and the server tree are the same, the "parent path" will match up regardless of rendering order.
185185
@@ -302,4 +302,3 @@ input { margin: 5px; }
302302
```
303303
304304
</Sandpack>
305-

0 commit comments

Comments
 (0)