I am using the same component for three different routes:
<Router>
<Route path="/home" component={Home} />
<Route path="/users" component={Home} />
<Route path="/widgets" component={Home} />
</Router>
Is there anyway to combine it, to be like:
<Router>
<Route path=["/home", "/users", "/widgets"] component={Home} />
</Router>
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…