【发布时间】:2016-12-20 15:41:55
【问题描述】:
<Link to={{pathname:'/profile',query: {id: {user.id}}}>View </Link>
我想渲染一个指向路径的链接,但在我的 dom 中我看到 profile/user?user.id
一开始我尝试了一些更简单的方法
<Link to="/profile/{user.id}">View </Link> it doesn't work too.
【问题讨论】:
-
尝试查看
标签: javascript reactjs react-router jsx