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} / >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32767-2b66a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32767-2b66a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?