我将相同的组件用于三条不同的路由:
<Router>
<Route path="/home" component={Home} />
<Route path="/users" component={Home} />
<Route path="/widgets" component={Home} />
</Router>
有没有办法把它结合起来,就像:
<Router>
<Route path=["/home", "/users", "/widgets"] component={Home} />
</Router>