Skip to content

Commit

Permalink
docs(start): update root route in the getting-started.md (#2686)
Browse files Browse the repository at this point in the history
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
InsaneNaman and autofix-ci[bot] authored Nov 1, 2024
1 parent f4ed2c2 commit 1cdfd1f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/framework/react/start/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,13 @@ Finally, we need to create the root of our application. This is the entry point

```tsx
// app/routes/__root.tsx
import { createRootRoute } from '@tanstack/react-router'
import { Outlet, ScrollRestoration } from '@tanstack/react-router'
import {
Outlet,
ScrollRestoration,
createRootRoute,
} from '@tanstack/react-router'
import { Body, Head, Html, Meta, Scripts } from '@tanstack/start'
import * as React from 'react'
import type { ReactNode } from 'react'

export const Route = createRootRoute({
meta: () => [
Expand All @@ -224,7 +227,7 @@ function RootComponent() {
)
}

function RootDocument({ children }: { children: React.ReactNode }) {
function RootDocument({ children }: Readonly<{ children: ReactNode }>) {
return (
<Html>
<Head>
Expand Down

0 comments on commit 1cdfd1f

Please sign in to comment.