Replies: 3 comments 2 replies
-
해결 방법layout.tsx 파일의 최상단에 'use client'를 추가하여 해결 추가 버그
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Next.js 13에서 root layout은 _app, _document를 대체하는거라서 styled-component 자체를 사용하면 안될것 같다. |
Beta Was this translation helpful? Give feedback.
2 replies
-
root layout 은 _app, _document 파일을 대체하도록 되어 있어요. 아래 링크도 참고해보아요 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
bug code
import styled from 'styled-components'
import './globals.css'
export const metadata = {
title: 'GoaTani',
description: 'G.O.A.T Ohtani',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
{children}
)
}
const Wrapper = styled.div
height: 59px; display: flex; align-items: center; justify-content: center; padding: 0px 18px;
스크린샷
Beta Was this translation helpful? Give feedback.
All reactions