Closed garg-priyanka closed 4 years ago
State: add a cart
Local storage: Set a key (items), and then the value would be an array of objects (which would be the data about the cakes, and be the thing that goes into state)
Rewrite cart & checkout components to get data from state instead of localStorage
State: add a cart
Local storage: Set a key (items), and then the value would be an array of objects (which would be the data about the cakes, and be the thing that goes into state)