PAST ID для реагирования маршрутов

<Route path="/products/:id">
  <Products />
</Route>

On the products page use useParams react hook to access the id Route match param.
import { useState } from "react"

const { id } = useParams();
capitalistlion