cara menambahkan dua elemen dalam satu jalur di 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