Skip to content
Snippets Groups Projects
Commit cc593c2c authored by Tiago Brito's avatar Tiago Brito
Browse files

Implemented FeaturedProducts.js

parent 74e9bdd2
No related branches found
No related tags found
No related merge requests found
// FeaturedProducts.js
import React from 'react';
import '../css/FeaturedProducts.css'
function FeaturedProducts({ title, products }) {
return (
<div className="featured-products">
<h2>{title}</h2>
<div className="product-list">
{products.map(product => (
<div key={product.id} className="product">
<img src={product.image} alt={product.name} />
<h3>{product.name}</h3>
</div>
))}
</div>
</div>
);
}
export default FeaturedProducts;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment