Reputation: 5749
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>
);
Upvotes: 0
Views: 368
Reputation: 23825
You can use this notation if you want to display both components:
<Route path={"/"}>
<App/>
<SearchFlow/>
</Route>
Upvotes: 1