Next.js App Router 사용 시 컴포넌트 폴더/파일 네이밍 규칙에 대한 고민 #242
Eunkyung-Son
started this conversation in
A vs B
Replies: 2 comments
-
.tsx는 파스칼 .ts는 케밥은 안될까요? ㅎㅎ |
Beta Was this translation helpful? Give feedback.
0 replies
-
저는 components/ 하위에 페이지 별 폴더 (케밥 케이스) 그리고 컴포넌트 파일 이름은 파스칼 케이스를 선호해요. |
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 App Router를 사용할 때,
컴포넌트 폴더와 파일 이름을 케밥 케이스(kebab-case)로 할지, 파스칼 케이스(PascalCase)로 할지에 대해 의견을 나누고 싶습니다.
App Router 구조상 라우트 폴더는 케밥 케이스가 기본인데, 컴포넌트 폴더까지 케밥으로 맞추는 게 좋을까요?
아니면, 컴포넌트처럼 기능적인 단위는 파스칼 케이스로 분리해서 가독성과 구분성을 높이는 게 좋을까요?
여러분은 어떤 방식을 선호하시나요?
더 좋은 방안이 있으면 자유롭게 의견 주시면 감사하겠습니다.
31 votes ·
Beta Was this translation helpful? Give feedback.
All reactions