Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dynamic routing

 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);
 
PREVIOUS NEXT
Tagged: #dynamic #routing
ADD COMMENT
Topic
Name
3+3 =