我在Reach Router中有一个路由器,如下所示:
<Router>
<Redirect from="/" to="/talent" noThrow />
<Global path="global" />
<Global path="global/*" />
<Global path="global/*/*" />
<Global path="global/*/*/*" />
<Candidates path="talent" />
<Candidates path="talent/*" />
<Candidates path="talent/*/*" />
<Candidates path="talent/*/*/*" />
</Router>
是否有更好的方法将所有子路径都指向同一组件?