title: How to parse query string in react-router v4
body: <p>In react-router v3 I could access it with <code>props.location.query.foo</code> (if the current location was <code>?foo=bar</code>)</p>
  
  <p>In <code>react-router-dom@4.0.0</code> <code>props.location</code> only has <code>props.location.search</code> with is a string like <code>?foo=bar&amp;other=thing</code>.</p>
  
  <p>Perhaps I need to manually parse and deconstruct that string to find the value for <code>foo</code> or <code>other</code>.</p>
  
  <p>Screenshot of <code>console.log(this.props)</code>:
  <a href="https://i.stack.imgur.com/NUR76.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NUR76.png" alt="enter image description here"></a>
  (Note how from <code>?artist=band</code> here I'd like to get the value from <code>artist</code> which is the value <code>band</code>)</p>