Skip to content

Commit

Permalink
docs: add children type in layout example
Browse files Browse the repository at this point in the history
  • Loading branch information
yeeed711 committed Dec 6, 2024
1 parent a6da830 commit e00bfa9
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 e00bfa9

Please sign in to comment.