ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Warning: Extra attributes from the server: class,style
    카테고리 없음 2024. 2. 13. 09:55

    Warning: Extra attributes from the server: class,style

    이런 오류가 생기면

    suppressHydrationWarning 을 추가하면 된다

    /app/layout.tsx

    export default function RootLayout({ children }: RootLayoutProps) {
      return (
        <html lang="ko" suppressHydrationWarning>
          <body>{children}</body>
        </html>
      );
    }

    댓글

Designed by Tistory.