Replies: 1 comment
-
|
Styled Components는 SSR을 지원하긴 하지만, 서버 컴포넌트 구현할 때 Next.js에서 기본적으로 지원하는 CSS-in-JS 방식인 styled-jsx을 사용하는 것은 어떤가요? References |
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

Uh oh!
There was an error while loading. Please reload this page.
-
Next.js 12에서 pages router SSR 방식으로 페이지를 구현할 때 CSS-in-JS 라이브러리로
Styled-Components를 사용하여 스타일을 지정했습니다.Next.js 13 및 Next.js 14 프로젝트에서는 서버 컴포넌트를 구현할 때 CSS-in-JS 라이브러리를 사용할 수 없을까요?
새로운 프로젝트에서 app router와 서버 컴포넌트를 구현한다면, 기존에 잘 활용하던 Styled-Components 라이브러리를 포기하고 다른 css 라이브러리를 도입해야 할까요 ?
공식 문서에 따르면 서버 컴포넌트에 스타일을 적용하기 위해선 CSS Modules나 Tailwind CSS를 사용하는 것이 권장된다고 나와 있네요.
공식문서: https://nextjs.org/docs/app/building-your-application/styling/css-in-js
Beta Was this translation helpful? Give feedback.
All reactions