Map, Filter and Reduce

Map: In map first all the data of each category is fetched then from whole data only required data like name, image, price etc. is mapped in cards instead of showing complete data about each product

Filter: Created a input field and button in which only products having price less than or equal to user entered price is filtered from whole data and displayed on UI.

Reduce: In cart section when you add any product to cart the cart stores the list of product and prices. For total price calculation reduce function is implemented to reduce the list of price into a single value by adding them all.

Shopping Cart

Your cart is empty.