doc: add id as prop to Product function
This commit is contained in:
1 parent
9dc80c75ad
commit
872938bdd1
1 file changed
+1
-1
@@ -2,7 +2,7 @@ import React from "react";
|
||||
import { useStateValue } from "../redux/StateProvider";
|
||||
import "./Product.css";
|
||||
|
||||
function Product({ title, image, price, rating }) {
|
||||
function Product({ id, title, image, price, rating }) {
|
||||
const [{ basket }, dispatch] = useStateValue();
|
||||
|
||||
const addToBasket = () => {
|
||||
|
||||
Reference in new issue
Block a user