Skip to content

Commit 560d714

Browse files
authored
Specify 'use client' to differentiate between a server component. (#310)
1 parent 7fc5fb8 commit 560d714

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ export default async function HomePage() {
244244
For client components, use the `useAuth` hook to get the current user session.
245245
246246
```jsx
247+
'use client'
247248
// Note the updated import path
248249
import { useAuth } from '@workos-inc/authkit-nextjs/components';
249250

0 commit comments

Comments
 (0)