리액트 페이지 새로고침 하기

henry·2021년 4월 19일
4
history.push("/~");

history.push로 url을 변경해 보지만 실제로는 적용이 안 됨,

window.location.replace("/")

or

  location.reload();

이 코드를 사용하면 새로고침 완료

0개의 댓글