Updating the quantity of a product is an essential feature for a great checkout experience. In this lesson, we will create a feature to update the quantity of each product in our cart.
We'll create a new component with a form input to increment the number of items and a button to submit that form. Additonally, we will create an updated item function in the
useCart hook that adds the ability to update the quantity of a product in the shopping cart by ID and trigger an update whenever the quantity form on the cart table is submitted.