0

I use react-router 5x..., i search to have the same path but with multiple component, something like

<Route path={"/"} component={App & SeachFlow} />

in my tsx i have

export default (
  <Route component={App}>
    <Route path="/" component={SeachFlow} />
  </Route>
);
robert trudel
  • 5,283
  • 17
  • 72
  • 124

1 Answers1

1

You can use this notation if you want to display both components:

<Route path={"/"}>
  <App/>
  <SearchFlow/>
</Route>
Tobias S.
  • 21,159
  • 4
  • 27
  • 45