You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overview:
When a user adds an icecream to the cart in the Single Product Page or the Hall of Fame Page, that data should be reflected in the cart and eventually checkout. When a user edits the quantity of their selection in the cart, or deletes an item altogether, that should be reflected in the rest of the cart page. Upon navigating to checkout, all changes along the way should be reflected.
Action:
Create an icecream reducer, and import it into the highest level of the app (main.tsx)
The reducer should have the capability add an icecream flavor to state (of the reducer)
The reducer should have the capability edit the amount of an icecream flavor in state (of the reducer)
The reducer should have the capability to delete an icecream flavor from state (of the reducer)
Pass the reducer’s state and dispatch methods to the component’s that need access (single-product page, cart, checkout)
Write documentation on the reducer’s actions & how to use them in Notion
Overview:
When a user adds an icecream to the cart in the Single Product Page or the Hall of Fame Page, that data should be reflected in the cart and eventually checkout. When a user edits the quantity of their selection in the cart, or deletes an item altogether, that should be reflected in the rest of the cart page. Upon navigating to checkout, all changes along the way should be reflected.
Action:
Resources:
React's Guide to Reducer
The text was updated successfully, but these errors were encountered: