title: How to add attributes to react-router-dom?
body: <p>I want to add attributes on my <code>&lt;Route&gt;</code> 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:</p>
  
  <pre><code>        &lt;Route path="/myurl?myattribute=attributevalue"&gt;&lt;MyComponent /&gt;&lt;/Route&gt;
  </code></pre>
  
  <p>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 <code>?</code></p>
  
  <p>I can not find documentation on how I can make something like this work. I have seen something about the <code>:id</code> part of the url, but I do not quite understand it.</p>
  
  <p>Thank you for all help</p>