Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 如何在react中为网站创建网站地图?_Reactjs_React Router - Fatal编程技术网

Reactjs 如何在react中为网站创建网站地图?

Reactjs 如何在react中为网站创建网站地图?,reactjs,react-router,Reactjs,React Router,我是新的反应,我已经创建了一个网站,但现在我想创建一个这样的网站地图(从其他网站捕获)。我认为这必须通过react路由器完成,但我仍然不确定,我不知道如何使用react路由器完成 我有一个类似这样的路由器组件 <Route path="/" component={LoginBox}/> <Route path="/product" component={ProductLanding}/> <Route path="/dashboard" component={Da

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

我有一个类似这样的路由器组件

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

请告诉我我该怎么做这件事。。 事先非常感谢:)

例如



是的,这将在carList组件中处理,但我如何将其添加到我的页面?您想让我为您的整个carList组件编码吗P我只是想知道如何根据这些路线创建站点地图。我不确定我是否理解你的问题,是否显示你想要的面包屑?如果是这样的话,你可以使用@CésarLandesa No。我只想在我的网站中使用sitemap。我如何在我的网站中使用这样的sitemap(在问题的示例中)以及以下路线。@paqash没有找到明确的答案。