0

I am new to react I have created a website but now i want to create a site map like this(captured from other website). I think it has to be done through react-router but still i am not sure and i don't know how to do that with react-router.

enter image description here

I have a router component somewhat like this

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

Please do tell me how do i do this thing in react.. Thanks a lot in advance :)

Saif Ali Khan
  • 818
  • 3
  • 9
  • 34
  • I'm not sure I understand your question, is showing the breadcrumbs what you want? If that's the case you can use [React Breadcrumbs](https://github.com/svenanders/react-breadcrumbs) – César Landesa Feb 28 '17 at 09:31
  • @CésarLandesa No i just want to use sitemap in my website.How do i use sitemap like that(in the question's example) in my website with the following routes. – Saif Ali Khan Feb 28 '17 at 09:49
  • https://stackoverflow.com/questions/37021438/how-to-generate-sitemap-with-react-router – paqash Feb 28 '17 at 10:02
  • @paqash Did not find a clear answer. – Saif Ali Khan Feb 28 '17 at 10:11

1 Answers1

0

For example

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

The Mumbai part, other filters you may apply to your listing such as location should be handled by the CarList component I think

Borjante
  • 9,767
  • 6
  • 35
  • 61