- Notifications
You must be signed in to change notification settings - Fork173
CSS는 어디다 쓰시나요?#215
-
안녕하세요! ✳️ 저희 팀에서는 지금 “간단한 스타일도 styles.ts로 분리할지”, 여러분은 어떤 방식을 선호하시나요? A. 사용되는 컴포넌트 내부에서 작성해서 사용 // 사용되는 컴포넌트 내부constWrapper=styled.div` padding: 1rem; `;<Wrapped/> B. 따로 정의해서 컴포넌트에서 import해서 사용 importWrappedfrom'어디선가'<Wrapped/> |
CSS는 어디다 쓰시나요? 사용되는 컴포넌트 내부에서 작성해서 사용 54% 따로 정의해서 컴포넌트에서 import해서 사용 45% 22 votes· |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
컴포넌트 내부에서만 사용하면 내부에 선언하고, 두 개 이상의 컴포넌트에서 사용되면 분리하는걸 선호합니다. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
1 reply
-
동의합니다! FF 문서에 있는 시점 이동이랑동 연관 지을 수 있겠어요 |
BetaWas this translation helpful?Give feedback.
All reactions
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment