파일, 폴더명 작성 시

폴더, 컴포넌트가 아닌 파일 ⇒ 카멜케이스로 작성 ex) customHook

컴포넌트 ⇒ 파스칼 케이스로 작성

git 사용시

image.png

React

Component 이름

파스칼 케이스로 작성할 것

✅ 
const MyComponent = () => {
	...
}

Type 이름

파스칼 케이스로 용도에 맞는 이름

❌
interface Props {
	tip: string
}

✅
interface TooltipProps {
	tip: string
}

기본적인 컴포넌트는 function 컴포넌트로 선언

function Component() {
  return (<div></div>);
}