May 2018
Intermediate to advanced
470 pages
13h 54m
English
The Categories component is the second use case for the distinct categories and search APIs. For this component, we first fetch the list of categories in a parent component and send it as props to display the categories to the user:

When the user selects a category in the displayed list, a call is made to the Search API with just a category value, and the backend returns all the products in the selected category. The returned products are then rendered in a Products component.
In this first version of the MERN Marketplace, users can become sellers to create shops and add products, and visitors can browse shops and search ...
Read now
Unlock full access