1,引入Link模块
import { NavLink as Link } from 'react-router-dom'
2,Link标签中带上要传递的参数
<Link to={
{
pathname:`/要跳转的路径`,
state:{key值:val值}
}
}>
3,在跳转页面接收传递的参数
componentWillMount(){
//console.log(this.props.location)//传递过来的所有参数
console.log(this.props.location.state.key值)//val值
}