Skip to content

Commit

Permalink
Update docs/pages/getting-started/migrating-to-v5.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed May 19, 2024
1 parent a1b62c0 commit 8f2e029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/getting-started/migrating-to-v5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default async function Page() {
</Tabs.Tab>
<Tabs.Tab>

Imports from `next-auth/react` are now marked with the [`"use client"`](https://nextjs.org/docs/getting-started/react-essentials#the-use-client-directive) directive. Therefore, they can be used in client components just like they were used in previous versions. Don't forget, client components that attempt to access the session will need to be wrapped in a `<SessionProvider />`.
Imports from `next-auth/react` are now marked with the [`"use client"`](https://nextjs.org/docs/getting-started/react-essentials#the-use-client-directive) directive. Therefore, they can be used in client components just like they were used in previous versions. Don't forget, client components that attempt to access the session via context will need to be wrapped in a `<SessionProvider />`.

```ts filename="components/clientComponent.tsx"
'use client';
Expand Down

0 comments on commit 8f2e029

Please sign in to comment.