Lewati ID untuk reaksi rute
<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