Skip to content

Commit 7ac847c

Browse files
authored
Merge branch 'main' into sync-fcd00068
2 parents 5814262 + 97ec4b8 commit 7ac847c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/reference/react/use-client.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ As dependencies of `RichTextEditor`, `formatDate` and `Button` will also be eval
5959
In a React app, components are often split into separate files, or [modules](/learn/importing-and-exporting-components#exporting-and-importing-a-component).
6060

6161
For apps that use React Server Components, the app is server-rendered by default. `'use client'` introduces a server-client boundary in the [module dependency tree](/learn/understanding-your-ui-as-a-tree#the-module-dependency-tree), effectively creating a subtree of Client modules.
62-
6362
To better illustrate this, consider the following React Server Components app.
6463

6564
<Sandpack>
@@ -307,7 +306,7 @@ export default function Counter({initialValue = 0}) {
307306

308307
</Sandpack>
309308

310-
As `Counter` requires both the `useState` Hook and event handlers to increment or decrement the value, this component must be a Client Component and will require a `'use client'` directive at the top.
309+
As `Counter` requires both the `useState` Hook and event handlers to increment or decrement the value, this component must be a Client Component and will require a `'use client'` directive at the top.4
311310

312311
In contrast, a component that renders UI without interaction will not need to be a Client Component.
313312

src/sidebarReference.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
},
8383
{
8484
"title": "useTransition",
85-
"path": "/reference/react/useTransition"
85+
"path": "/reference/react/useTransition",
86+
"canary": true
8687
}
8788
]
8889
},

0 commit comments

Comments
 (0)