Remember:
- In
App
create a method to handle the action that comes fromProductItem
, and set it as a prop - Connect
ProductItem
form submission method, with a prop that comes fromApp
. - In
App
, in the method that you created update the state adding the item to the cart - Pass the cart items information (remember that we need name, quantity and subtotal) to
Cart
component - In cart loop through the items :)