title: How to pass id in Route React
body: <p>I want to build a page when from list of products I want to see product by ID. In my App file I have something like that:</p>
  <pre><code>&lt;Route path={ROUTES.product} element={&lt;Product id={1} /&gt;}&gt; 
  </code></pre>
  <p>but I want to replace static id with the value that comes from the selected product. In my Product file I have redirection to page with product but I don't know how I can pass the ID.</p>
  <pre><code>onClick={() =&gt; { navigate(`/products/${product?.id}`)}}
  </code></pre>
  <p>Any help would be appreciated.</p>