Cómo agregar dos elementos en una ruta en React Router V6
This is older version looks like
<Route path="/">
<Header/>
<Home/>
</Route>
Now you should Write like this in V6
<Route exact path="/" element={<><Header/><Home/></>}/>
The Javascript