이 에러는
import React, {useEffect, useState} from 'react';
로 React를 중괄호 밖에 홀로 빼주니까 에러가 고쳐졌다.
.
.
.
**
무슨 차이인지 알아봐야겠다
이건 내가 스택오버플로우에 질문 올렸다가 내 질문 채택한.. 링크..
https://stackoverflow.com/questions/67488793/typeerror-cannot-read-property-prototype-of-undefined