If someone enters the url /signu we should send them to a generic 'this page does not exist'
<Route component={ErrorPage} />
Adding that line to the bottom of the Routes component will catch any routes that weren't listed above it and then you can import and create a component with the name ErrorPage.
An idea I had was maybe show a heading that the page doesn't exist along with a cute/sad picture/meme of a dog/cat
I forgot but we need an error component.
If someone enters the url
/signu
we should send them to a generic 'this page does not exist'<Route component={ErrorPage} />
Adding that line to the bottom of the
Routes
component will catch any routes that weren't listed above it and then you can import and create a component with the nameErrorPage
.An idea I had was maybe show a heading that the page doesn't exist along with a cute/sad picture/meme of a dog/cat