I am new to ReactJS . I want to make route which may like (dashboard/product)
. How it would be possible . I created but it not working properly .. could some please help me .
Thanks .
<div style={wrapperStyle.MainWrapper}>
<h1>Dashboard Page</h1>
<div style={wrapperStyle.leftSideMenues}>
<h1>Left Side Menues</h1>
<div>
</div>
</div>
<Router>
<Switch>
<Route path='/' exact component= {Dashboard}/>
<Route path='/dashboard/:organizationContact' component={OraganizationContacts}/>
<Route path='/dashboard/products' component={Products}/>
<Route path='/sales' component={Sales}/>
<Route path='/purchase_orders' component={PurchaseOrders}/>
<Route path='/shipment' component={Shipments}/>
<Route path='/everything' component={Everything}/>
<Route path='/reports' component={Reports}/>
<Route path='/settings' component={Settings}/>
<Route path='/logout' component={LogOut}/>
<Route component={NotFound}/>
</Switch>
</Router>
</div>