HackTheTunnels / hack-the-tunnels-forest-github-test

hack-the-tunnels-forest-github-test created by GitHub Classroom
0 stars 2 forks source link

Recently Viewed Products Feature #14

Open hackthetunnelsbot[bot] opened 11 months ago

hackthetunnelsbot[bot] commented 11 months ago

Description:

On the home page, the customer should be able to see a list of their most recently viewed products. Similar to the following section taken from Amazon:

example

To create this feature, save the data from each product you visit in cookies to later surface on the home page.

When the user navigates to a product page, utilize the useCookies hook from the react-cookie library to access the setCookie, updateCookies, and removeCookie functions and set the desired product information in cookies.

On client/src/pages/Home/Home.tsx, utilize the stored product information stored in cookies to populate a new section called "Recently Viewed Products".

Acceptance Criteria:

On the home page, a section appears showcasing the most recently viewed products.