I have a react router switch and the 404 page doesnt work
<Switch>
<Route path="/login" component={Login} />
<Layout>
<ProtectedRoute exact path="/home" component={Home} />
<ProtectedRoute exact path="/profiles" component={Profiles} />
<ProtectedRoute exact path="/profiles/alarms" component={Alarms} />
<ProtectedRoute exact path="/profiles/:id" component={Profile} />
</Layout>
<ProtectedRoute component={NotFound} />
</Switch>
Whenever I change the url to a random one like '/tewyu'. The page just shows blank it doesnt go to the 404 page. It feels like one of the routes are catching it