目前传参方式:
<Link to={`/topics/${topic.id}`}>{topic.title}</Link>
1、请问传参方式是否正确?
然后跳到下个页面,地址栏为:
http://localhost:8080/topics/33119
本以为this.props.params.id这样能获取参数,但貌似不行。2、如何获取地址栏参数?
相关分类