我是新反应,我已经创建了一个网站,但现在我想创建一个这样的网站地图(从其他网站捕获)。我认为这必须通过react-router来完成,但我仍然不确定,也不知道如何使用react-router来实现。

我有一个路由器组件,有点像这样
<Route path="/" component={LoginBox}/>
<Route path="/product" component={ProductLanding}/>
<Route path="/dashboard" component={DashBoard}/>
<Route path="/salesfunnel" component={Salesfunnel}/>
<Route path="/addmeeting" component={AddMeeting}/>
<Route path="/pitchProduct" component={PitchProduct}/>
<Route path="/mysubs" component={MySubs}/>
<Route path="/updateproduct" component={UpdateProduct}/>
<Route path="/transactionform" component={AddTransaction}/>
<Route path="/sellerLanding" component={SellerLanding}/>
<Route path="/addSeller" component={AddSeller}/>请告诉我如何在react中做这件事..在此之前,非常感谢:)
发布于 2017-02-28 17:19:57
例如
<Route path="/" component={Home}/>
<Route path="/cars" component={CarList}/>
<Route path="/cars/:id" component={CarDetail}/>
孟买部分,您可能应用于清单的其他过滤器,如位置,我认为应该由CarList组件处理
https://stackoverflow.com/questions/42504586
复制相似问题