Typescript error This condition will always return 'true' since the types have no overlap

박주홍·2022년 2월 6일
0

Error

목록 보기
9/9
{sidebar === true ? <Sidebar/> : <Sidebarview />}

를 다음과 같이 고칠 것

{sidebar && true ? <Sidebar/> : <Sidebarview />}
profile
고통없는 성장은 없다고 할 수 있겠다....

1개의 댓글

comment-user-thumbnail
2022년 6월 30일

이 에러가 발생한 원인이 뭔가요??

답글 달기