How do routes that are not specified by react-router jump?

import React from "react";
import {Route} from "react-router-dom";
import Zero from "./page/Zero";
import One from "./page/One";
import Two from "./page/Two";
import Three from "./page/Three";
import Header from "./components/Header";

export default function getRoutes() {
  return (
    <div>
      <Header/>
      <Route path="/zero" component={Zero}/>
      <Route path="/one" component={One}/>
      <Route path="/two" component={Two}/>
      <Route path="/three" component={Three}/>
    </div>
  )
}

this is my route. I want to know what to do if I enter a random path, such as oneeeee, and I want their undefined path to jump to a component.

Mar.07,2021

needs to be used with Redirect

     <div>
      <Header/>
      <Switch>
        <Route path="/zero" exact component={Zero}/>
        <Route path="/one" exact component={One}/>
        <Route path="/two" exact component={Two}/>
        <Route path="/three" exact component={Three}/>
        <Route path="/undefined" exact component={Undefined}/>
        <Redirect to='/undefined'/>
      </Switch>
    </div>

add one:
< Route path= "*" component= {NotFoundPage} / >

Menu