April 2020
Intermediate to advanced
716 pages
18h 55m
English
In contrast to the Products component, the MyProducts component in client/product/MyProducts.js is only for displaying products to sellers so they can manage the products in each shop they own and will be displayed to the end user as pictured in the following screenshot:

The MyProducts component is added to the EditShop view as shown in the following code, so sellers can manage a shop and its contents in one place. It is provided with the shop's ID in a prop so that relevant products can be fetched:
mern-marketplace/client/shop/EditShop.js:
<MyProducts shopId={match.params.shopId}/>
In MyProducts, the relevant ...