next.js/test/development/acceptance-app/fixtures/hydration-errors/app/(extra-attributes)/layout.tsx
layout.tsx14 lines302 B
'use client'

import { ReactNode } from 'react'

const isServer = typeof window === 'undefined'

export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html {...(isServer ? { className: 'server-html' } : undefined)}>
      <body>{children}</body>
    </html>
  )
}
Quest for Codev2.0.0
/
SIGN IN