
React Router 5.2.0 버전을 사용 중인데, history package의 버전이 5.0.0으로 달라서 생기는 문제.
yarn remove history로 history 5.0.0 버전을 지운 후, yarn add history@4.10.1을 쳐서 history 4.10.1 버전을 설치해준다.
history.push is changing url but not rendering component in react
I am facing a problem with react history.push . The logic of my code is, when the API call completes, if the login status in response is false, I want to push to another route. The URL is changing ...
stackoverflow.com
반응형