[Error] Value must be omitted for boolean attributes

Lily·2022년 7월 19일

boolean type의 bold 값을 props로 넘겨 줄 때 true의 경우 생략해야 한다

interface Props {
	bold?: boolean
}

...

수정 전


<Typography
	bold={true}
    ...
>

수정 후

<Typograghy
	bold
    ...
>

0개의 댓글