Products component for buyers

The Products component is mainly for displaying the products to visitors who may buy the products. We will use this component to render product lists relevant to the buyer. It will receive the product list as props from a parent component displaying a list of products:

The list of products in a shop will be displayed to the user in an individual Shop view. So this Products component is added to the Shop component and given the list of relevant products as props. The searched prop relays whether this list is a result of a product search, so appropriate messages can be rendered.

mern-marketplace/client/shop/Shop.js ...

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.