[오류] React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

정(JJeong)·2023년 5월 1일
0
post-thumbnail

React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

처음엔 뭐지 type이 잘못됐나? 싶었다. 그래서 검색 돌려보고 코드를 재확인해보니,,,

어이없지만 props이름을 잘못 쓴거였다. props이름 고치고 바로 해결.
하핫

profile
2년차 응애 FE 개발자입니다👶

0개의 댓글