Skip to content

Assessment using React, TypeScript and useContext & useReducer hooks

Notifications You must be signed in to change notification settings

luiscarlos-ja/shopping-cart

Repository files navigation

Ecommerce

  • Display a list of products fetched from a JSON.
  • Add a filter by category.
  • Add a filter by price.

Make use of useContext to avoid passing unnecessary props.

Shopping Cart:

  • Allow adding products to the cart.
  • Enable removing products from the cart.
  • Allow modifying the quantity of products in the cart.
  • Synchronize cart changes with the product list.
  • Save the cart in localStorage to restore it upon page reload (bonus points) .