컴포넌트

interface InfoTextProps {
	id: number;
}

const InfoText = ({id}: Props) => {
	
  return (
  	<>
      <h1>Welcome!</h1>
      <p>This our new page, we're glad you're are here!</p>
    </>
  )
}

폴더명

타입

<aside> 💡

웬만하면 interface 를 사용하는 것이 좋습니다. 왜냐면 type 은 병합이 불가능하기 때문에 typescript 팀에서도 인터페이스 사용을 권장하고 있어요.

유니언 타입, 튜플, 리터럴 타입 등을 정의하는 것이 필수가 아니라면 interface 를 사용

</aside>

상수

변수