Search⌘ K
AI Features

Course Challenge

Learn to fetch the last three products from Hygraph CMS using GraphQL queries and React hooks. Add these products dynamically to your app interface and enable cart management with Snipcart integration, enhancing your e-commerce application's functionality.

In this course, we’ve learned how to create an e-commerce application with React and Hygraph and leverage GraphQL to fetch data from Hygraph. We have also learned how to implement a complete cart management system with Snipcart within our React application.

In our e-commerce application, we have a "New Arrivals" section that holds three products, but these products are manually added and don’t implement a carting system.

For this challenge, you are expected to fetch the last three ...