doc: pass title, image, price, and rating as props
This commit is contained in:
1 parent
537365cb90
commit
4d4b7ff31b
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./Product.css";
|
import "./Product.css";
|
||||||
|
|
||||||
function Product() {
|
function Product({ title, image, price, rating }) {
|
||||||
return (
|
return (
|
||||||
<section className="product">
|
<section className="product">
|
||||||
<article className="product__info">
|
<article className="product__info">
|
||||||
|
|||||||
Reference in new issue
Block a user