title: Route parameters in react
body: <p>I have many routes</p>
  
  <pre><code>&lt;Route exact path="/"  component={Test} /&gt;
  &lt;Route exact path="/1"  component={Test1} /&gt;
  &lt;Route exact path="/2"  component={Test2} /&gt;
  </code></pre>
  
  <p>In every component i use <code>useLocation</code> to get the data from route. It exists a possibility to pass in <code>Route</code> a parameter and to access that parameter with <code>useLocation</code>, in every component? </p>
  
  <p><strong>Here is the example:</strong> </p>
  
  <pre><code>&lt;Route exact path="/" parameter='this is route nr 1'  component={Test} /&gt;
  &lt;Route exact path="2/" parameter='this is route nr 2'  component={Test2} /&gt;
  </code></pre>
  
  <p>Which is the solution to do what i want to achieve?</p>