1

所以我试图掌握 new react-router-dom,但我无法让 Link 元素正常工作:即使我使用

<Link to={to} replace>
  link
</Link>

目的地不会替换当前路由器位置,但会推送到它。

你知道我怎样才能得到它来代替它吗?

4

0 回答 0