이 글의 성격은 무엇인가요?
질문 / 문제 해결
내용을 설명해주세요
<FixedBottomCTA
size="xlarge"
disabled={!selected}
onClick={() => selected && setStep(2)}
>
다음
</FixedBottomCTA>
위와 같이 onClick을 바로 주려고 하면 타입 에러가 납니다.
react 19에서 안되는 것 같은데, 방법을 알려주세요.
Type '{ children: string; size: "xlarge"; disabled: boolean; onClick: () => void | null; }' is not assignable to type 'IntrinsicAttributes & Omit<FixedBottomCTATypeAProps, "ref"> & RefAttributes<HTMLButtonElement>'.
Property 'onClick' does not exist on type 'IntrinsicAttributes & Omit<FixedBottomCTATypeAProps, "ref"> & RefAttributes<HTMLButtonElement>'.