useParams

Pascual Vila
Frontend Instructor.
useParams is a Hook that allows you to access URL parameters. It's useful when you need to extract dynamic values from the route, such as resource identifiers.
Example of useParams usage:
{`import React from "react";
import { useParams } from "react-router-dom";
function Product() {
const { id } = useParams();
return Product ID: {id}
}
export default Product;`}