Pase ID a las rutas Reactjs
<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