How would I structure a React-Router switch statement to prevent anything from happening if the user enters an unmatched route? In other words, I don't want a 404 not found page; I just want nothing to happen and the current url doesn't change.
Here's my switch statement:
<Switch>
<Route path="/" exact>
<LandingPage />
</Route>
<Route path="/login" exact>
<LandingPage />
</Route>
<Route path="/new-account" exact>
<LandingPage />
</Route>
<Route path="/account-settings" exact>
<AccountSettings />
</Route>
<Route path="/dashboard" exact>
<Dashboard userStatus={userStatus} />
</Route>
<Route path={"*"}>
{/* Could I somehow achieve this here? */}
</Route>
</Switch>