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

What happens when jump fails in react-router 4.0?

零下一度
Release: 2017-06-26 11:41:52
Original
1473 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template