Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaxyz committed Dec 2, 2024
1 parent e3a24bb commit 4c79096
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions docs/components/clerk-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,6 @@ The `<ClerkProvider>` component is required for integrating Clerk into your Reac

The recommended approach is to wrap your entire app with `<ClerkProvider>` at the entry point, making authentication globally accessible. However, you can place `<ClerkProvider>` deeper in the component tree if your app has specific routes or areas that require authentication. This flexibility allows you to implement Clerk's functionality exactly where needed without affecting the rest of your app.

Starting with v6, `<ClerkProvider>` no longer opts your entire app into dynamic rendering by default. To enable dynamic rendering, see the [upgrade guide](/docs/upgrade-guides/nextjs/v6.mdx).

```tsx {{ filename: 'app/layout.tsx' }}
import { ClerkProvider } from '@clerk/nextjs'

export default function RootLayout({ children }) {
return (
<ClerkProvider dynamic>
<html>
<body>{children}</body>
</html>
</ClerkProvider>
)
}
```

## Usage

The `<ClerkProvider>` component must be added to your React entrypoint.
Expand Down

0 comments on commit 4c79096

Please sign in to comment.