Answer the question
In order to leave comments, you need to log in
Why is the route not working for 404 pages?
Good morning. Please tell me what I did wrong?
return (
<div>
<Router>
<Switch>
<Route path='/find-company'>
<TopBar />
<GetCompanySearchPage />
<Footer />
</Route>
<Route path='/company'>
<TopBar />
<GetCompanyPage company={company} />
<Footer />
</Route>
<Route path='/tenders'>
<TopBar />
<GetTenders tenders={tenders}/>
<Footer />
</Route>
<Route path='/'>
<Header />
<GetMain />
<Footer />
</Route>
<Route>
<Page404 />
<Footer />
</Route>
</Switch>
</Router>
</div>
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question