有人知道在使用React Router时如何在React中获取URL参数吗?
我正在尝试这样做:
filterList(key) {
if (key===this.props.location.query){
return Blogstore.state.blog
}要与链接末尾的唯一键匹配:
发布于 2016-05-01 11:16:47
答案是:
this.props.routeParams.keyhttps://stackoverflow.com/questions/36961977
复制相似问题