diff --git a/docs/01-app/02-building-your-application/03-rendering/03-composition-patterns.mdx b/docs/01-app/02-building-your-application/03-rendering/03-composition-patterns.mdx index 93bd472897872..a2658c9f8b7d8 100644 --- a/docs/01-app/02-building-your-application/03-rendering/03-composition-patterns.mdx +++ b/docs/01-app/02-building-your-application/03-rendering/03-composition-patterns.mdx @@ -246,7 +246,11 @@ import { createContext } from 'react' // createContext is not supported in Server Components export const ThemeContext = createContext({}) -export default function RootLayout({ children }) { +export default function RootLayout({ + children, +}: { + children: React.ReactNode +}) { return (