April 2020
Intermediate to advanced
716 pages
18h 55m
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, as shown in the following screenshot:

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. This can be a simple way to combine these APIs and display meaningful products to buyers browsing through ...
Read now
Unlock full access