
styled-components로 프로젝트를 시작할 때 참고할 만한 사례
·
🎨 프론트엔드 공부/HTML & CSS
📍배경 styled-components로 팀 프로젝트를 시작했는데, 어떻게 폴더 구조를 정해야 할까? 다양한 글을 읽고 내가 내린 결론은... 📍폴더 구조 ✅프론트엔드 기술 스택 - Next.js - TypeScript - Styled-components ⭐ 여기에 중점! ✅폴더 구조 /* root ├─components │ ├─common │ │ ├─Button.styled.ts : 재사용 스타일 (에시) │ │ ├─Input.styled.ts │ ├─Header : 개별 컴포넌트 (예시) │ │ ├─index.tsx : 로직 │ │ └─styled.ts : 스타일 │ ... ├─enum │ └─index.tsx : 상수화를 위한 문자열 데이터 보관 폴더 ├─pages │ ├─404.tsx : /err..