I want to add attributes on my <Route>
from react-router-dom. When I just add it inside the path, the default route is fired instead. An example of what I would like to work, but do not, since the default route is used instead:
<Route path="/myurl?myattribute=attributevalue"><MyComponent /></Route>
It seems like the Route path do get confused with the questionmark. If I just change it to something else, like an amperstamp, it "works". However, It is not that format I want. I want the regular ?
I can not find documentation on how I can make something like this work. I have seen something about the :id
part of the url, but I do not quite understand it.
Thank you for all help