react-router-dom 설치후 화면출력 에러

김남경·2022년 11월 28일

react

목록 보기
4/37

❓ 강좌를 그대로 따라하고 npm start 하니 화면출력이 안됨 콘솔을 보니 아래와 같은 오류가 있었다

ERROR
...
the above error occurred in the component:

in package.json
...
"react-router-dom": "^6.4.3",

✅ npm i react-router-dom으로 최신 버전 설치해야함

참고

stackoverflow - The above error occurred in the component, Invalid hook call

profile
기본에 충실하며 앞으로 발전하는

0개의 댓글