In the document, the jump is
using this method. However, after using it, there is such a problem. The URL is changed but the page is not refreshed.
After checking the information, history only needs to be configured once at the router, and it can be HashRouter, so just use this.props.history.push("/index"). It feels like Much more convenient than before.
The above is the detailed content of What happens when jump fails in react-router 4.0?. For more information, please follow other related articles on the PHP Chinese website!