title: React router path as an array
body: <p>I have a code like this :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;BrowserRouter&gt;
    &lt;Switch&gt;
      &lt;Route path="/" exact component={component1} /&gt;
      &lt;Route path="/somewhere/:something" component={component2} /&gt;
    &lt;/Switch&gt;
  &lt;/BrowserRouter&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I tried this, because in the end, I want to match several paths with the same component / result :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;BrowserRouter&gt;
    &lt;Switch&gt;
      &lt;Route path={["/somewhere/:something","/somewhere2/:something"]} component={component2} /&gt;
    &lt;/Switch&gt;
  &lt;/BrowserRouter&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and the path is matched, but my parameter (:something) isnt passed to it. Any idea why ? react-router's docs <a href="https://reacttraining.com/react-router/web/api/Route/path-string-string" rel="noreferrer">tells me</a> : </p>
  
  <blockquote>
    <p>Any valid URL path or array of paths that path-to-regexp@^1.7.0 understands.</p>
  </blockquote>