Is it possible with react-router to change the route if the queryParam changes but the path stays the same? I have defined two routes:
<BrowserRouter>
<Switch>
<Route exact path="/" component={List} />
<Route path="/=" component={Content} />
</Switch>
</BrowserRouter>
My List view basically shows a list of items. When someone clicks on the item the url should be changed to /?content=content-id.
The final application should have the following routes:
"/" => render List View
"?content=content-id" => render Content View
Thanks for your help