\'react-router-dom\' has refresh function here, but I don\'t know how to call this method, also their well formatted document doesn\'t bother to explain this.
windo
I have the same problem and I have no clue how the refresh does. My solution is to do following two steps.
Then the DOM will rerender with your route.