Home  >  Article  >  Web Front-end  >  What happens when jump fails in react-router 4.0?

What happens when jump fails in react-router 4.0?

零下一度
零下一度Original
2017-06-26 11:41:521455browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn