I'm working with a hashrouter and I want to support dynamic path (ie: /user/:id).
The way I've done it is :
<HashRouter>
<Routes>
<Route index element={<App />} />
<Route path="/user/:id" component={User}/>
</Routes>
</HashRouter>
I also tried working with render:
<Route path="/user/:id" render={(props) => <User {...props} />}/>
But nothing seem to work.
What is the proper way to do this ?