Skip to content

Commit 0906aa7

Browse files
authored
fix: Update React Router documentation (#2718)
1 parent 2f00543 commit 0906aa7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/getting-started/quickstart.react-router.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ This tutorial assumes that you're using React Router **v7.1.2 or later** in fram
182182
- [`<UserButton />`](/docs/reference/components/user/user-button): Shows the signed-in user's avatar. Selecting it opens a dropdown menu with account management options.
183183
- [`<SignInButton />`](/docs/reference/components/unstyled/sign-in-button): An unstyled component that links to the sign-in page. In this example, since no props or [environment variables](/docs/guides/development/clerk-environment-variables) are set for the sign-in URL, this component links to the [Account Portal sign-in page](/docs/guides/customizing-clerk/account-portal#sign-in).
184184

185-
```tsx {{ filename: 'app/root.tsx', mark: [44, [46, 58]], fold: [[2, 42], [62, 87]] }}
185+
```tsx {{ filename: 'app/root.tsx', mark: [44, [46, 58], 60], fold: [[2, 42], [62, 87]] }}
186186
import { ClerkProvider, SignedIn, SignedOut, UserButton, SignInButton } from '@clerk/react-router'
187187
import { isRouteErrorResponse, Links, Meta, Outlet, Scripts, ScrollRestoration } from 'react-router'
188188
import { clerkMiddleware, rootAuthLoader } from '@clerk/react-router/server'
@@ -241,9 +241,7 @@ This tutorial assumes that you're using React Router **v7.1.2 or later** in fram
241241
<UserButton />
242242
</SignedIn>
243243
</header>
244-
<main>
245-
<Outlet />
246-
</main>
244+
<Outlet />
247245
</ClerkProvider>
248246
)
249247
}

0 commit comments

Comments
 (0)