리액트 : import export가 문제라는데?

지선·2021년 8월 28일

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


화면이 안뜬 이유!

  • 일단 형식대로 하고싶어서 내용이없는 컴포넌트를 넣었더니 render에 넣었더니 이런 오류가 떴다!
profile
프론트엔드개발자가 될거야!

0개의 댓글