roteamento dinâmico

 1: <Route exact path="/shippingdetail/:id" element={<ShippingDetail />} />
 2: 			 <Box
         	 component={Link}
              to="/shippingdetail/123"
              className={classes.container}
            >
            import { useParams } from "react-router-dom";
  const param = useParams();
  console.log(param);
Blue Baboon