Как добавить два элемента в один путь в 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