Error- 'Component' cannot be used as a JSX component
@types/react버전 충돌 문제@types/react는 18버전에서 breaking changes 가 있었다.- 만약 리액트 18^ 을 사용중인데, 다른 라이브러리에서
@types/react를 17버전으로 사용하고 있다면 요런 에러가 날것.
해결 방법
yarn deupe혹은 resolution 필드 정의해서 버전 고정시키기
``
@types/react 버전 충돌 문제@types/react는 18버전에서 breaking changes 가 있었다.@types/react를 17버전으로 사용하고 있다면 요런 에러가 날것.yarn deupe 혹은 resolution 필드 정의해서 버전 고정시키기