react router catch all 404

JavaScript
<Switch>
   <Route path="/" exact component={Home}/>
   <Route path="/about" component={About}/>
   <Route component={Page404} />
</Switch>
Source

Also in JavaScript: