React.createElement: 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.


이런 에러나서 한참 해멨는데


react-router가 아니라 react-router-dom 이다.


아우 왜 사람 헷갈리게 비슷한게 많은지 ㅜㅜ

+ Recent posts

티스토리 툴바