React页面跳转的几种方式?

方式一:history在原窗口跳转

this.props.history.push("你的url后缀路径,不包含域名")
//比如
 this.props.history.push("/swagger/project/detail/"+projectId)

方式二:打开新的跳转窗口

let url = document.URL + "/detail/" + projectId;
window.open(url) //此处的url是全路径

方式三:使用<a>标签,原窗口跳转

<a href="你要跳转的URL,不包含域名">项目列表</a>