Skip to content

Commit

Permalink
docs(composition-patterns): add missing React.ReactNode type in layou…
Browse files Browse the repository at this point in the history
…t.tsx example (#73577)
  • Loading branch information
yeeed711 authored and devjiwonchoi committed Dec 9, 2024
1 parent ced6b58 commit c757c55
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<html>
<body>
Expand Down

0 comments on commit c757c55

Please sign in to comment.