May 2018
Intermediate to advanced
470 pages
13h 54m
English
The Suggestions component will be rendered on the homepage and on an individual product page to show the latest products and related products, respectively:

It will receive the relevant list of products from the parent component as props, along with a title for the list:
<Suggestions products={this.state.suggestions} title={this.state.suggestionTitle}/>
In the Suggestions component, the received list is iterated over and individual products rendered with relevant details, a link to the individual product page, and an AddToCart component.
mern-marketplace/client/product/Suggestions.js:
<Typography type="title"> {this.props.title} ...Read now
Unlock full access