doc: pass title, image, price, and rating as props

This commit is contained in:
Leon Xu committed 2022-05-05 19:12:30 -07:00
1 parent 537365cb90
commit 4d4b7ff31b
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
import React from "react";
import "./Product.css";
function Product() {
function Product({ title, image, price, rating }) {
return (
<section className="product">
<article className="product__info">