Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Warning: Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it.
강의에서 쓰인 버전과 최신 업데이트 버전의 기능이 살짝 달라서 자꾸 에러가 나는 듯 하다.
계속 구글링하면서 수정했는데도, 해결이 안되다가
어찌저찌 찾은 내용들을 짬뽕해서 적용해보니 해결....ㅎㅎ;
-수정 전(강의내용에 있는 코드)
-수정 후
수정 전(강의내용에 있는 코드)
-수정 후