如何为网站创建站点地图做出反应?

时间:2017-02-28 09:16:24

标签: reactjs react-router

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

enter image description here

我的路由器组件有点像这样

<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}/>

请告诉我怎么做这件事反应.. 非常感谢提前:)

2 个答案:

答案 0 :(得分:0)

例如

&#13;
&#13;
<Route path="/" component={Home}/>
<Route path="/cars" component={CarList}/>
<Route path="/cars/:id" component={CarDetail}/>
&#13;
&#13;
&#13;

孟买部分,您可以应用于您的商家信息的其他过滤器(例如位置)应由我认为的CarList组件处理

答案 1 :(得分:0)

相关问题