i have fetched the data from an api and successfully displayed the data in a marketplace. Now when a user clicks on one product it should open the product details page and send the data of that product to populate the details page. i want to pass the specific data of one product from the Api to the product details page when that product is clicked. Please help
this is the code to render the various products
const renderitems = currentitems.map((item) => {
return <div key={item.id} className="col-md-6">
<div className="listing">
<div className="listing-thumbnail">
<Link to="/listing-details-v1"><img src={ item.images[0]} alt="listing" /></Link>
how do i pass the id of the clicked on link to the details page
`