props 전달 (1) 썸네일형 리스트형 (TS) 부모와 자식 컴포넌트 / styled-component props 전달 부모 컴포넌트 Header.tsx 상담 신청하기 자식 컴포넌트 RequestConsultringButton.tsxinterface invertedProps { inverted: boolean}const RequestConsultingButton = ({ props, children,}: { props: invertedProps children: string}) => { return ( {children} )}일반적인 방법으로 코드 작성.interface (혹은 타입 지정) 지정하여 처리 부모 컴포넌트에서 IntrinsicAttributes 오류 발생오류 발생 원인을 정확하게 모르겠다. 이리 저리 찾아 봤으나 이유는 모르나 다른 형태로 코드를 작성하여서 해결하였다. .. 이전 1 다음