I was looking at the react-router
capability. To create a "Page Not Found" you use a <Switch>
with the last entry set to a catch all like so:
<Switch>
<Route path="/" component={Home}/>
[...snip...]
<Route component={PageNotFound}/>
</Switch>
However, that means the server just returned a 200 OK
response to the client. In terms of SEO or just plain "let's follow the HTTP rules", I think it's broken.
Is that the norm on one page type of websites? Returning a soft 404?
Note that this would be if a user follows an external link from another website to a page on my React App website, page that was removed or never existed. While clicking links in the App., it doesn't matter. I do not see a way to have React return a 404 when the path is wrong. Am I correct?