How can I render multiple components in single route in react-router-dom v6?
This is how I render in react-router-dom v5
function App() {
return (
<Router>
<div className="app">
<Switch>
<Route path="/checkout">
<Header />
<Checkout />
</Route>
<Route path="/">
<Header />
<Home />
</Route>
</Switch>
</div>
</Router>
);
}
How can I do same thing with react-router-dom v6?