【发布时间】:2017-07-19 04:16:36
【问题描述】:
我是新来的反应我已经创建了一个网站,但现在我想创建一个这样的站点地图(从其他网站捕获)。我认为它必须通过 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 Breadcrumbs
-
@CésarLandesa 不,我只想在我的网站中使用站点地图。如何在我的网站中使用这样的站点地图(在问题的示例中),路径如下。
-
@paqash 没有找到明确的答案。
标签: reactjs react-router