Hello I have the following logic, my routers wrapped with div`s
render() {
return (<div id={'container'} className={this.state.mode} >
<div id='buyers'>
<NavBar />
<Route path='/buy/' render={()=><BuyersBuy />} />
<Route path='/refund/:id?' render={()=><BuyersRefund />} />
<Route path='/download/:id?' render={()=><BuyersDownload />} />
...(Around 18 Routes for Buyers)
</div>
//Sellers Routers
<div id='dashboard'>
{this.state.pathname === '/private' && <TopNavBarSellers />}
{this.state.pathname === '/private' && <LeftNavBarSellers />}
<Route path='/dashbaord/profile' render={()=><SellersDash />} />
(4 routers more)
</div>
And so according to that I wanted to create not found page
I tried to wrap a Switch
but it doesn't work because there are div`s inside of it.