title: How to read URL Parameters within Component in React JS?
body: <p>This may sound dump, but how I am supposed to read the URL and get its values from an URL in React JS. 
  I have been told to use the QueryString in order to handle the GET parameters.</p>
  
  <p>The Url looks has following structure: </p>
  
  <pre><code>localhost/test?id=xxx&amp;value=yyyy
  </code></pre>
  
  <p>in the component class I'm using following code: </p>
  
  <pre><code>class test extends Component {
  
    func() {
      const params = queryString.parse(location.search);
  
       //here I get: {?id=xxx&amp;value=yyyy}
    }
  }
  </code></pre>
  
  <p>How does it come that the Questionmark Sign has been retrived also?
  And how to fix it, so that I am able to get those values without crafting too much?</p>