Closed jamesgeer closed 2 years ago
If the user attempts to access a URL that does not exist they should be shown a 404 page.
Something like this:
<Route path="*" element={<PageNotFound />} />
(Put this after all the other routes)
Of course, you will need to create a 'PageNotFound' component.
If the user attempts to access a URL that does not exist they should be shown a 404 page.
Something like this:
<Route path="*" element={<PageNotFound />} />
(Put this after all the other routes)
Of course, you will need to create a 'PageNotFound' component.