This project demonstrates how to create a cart page utilizing React Redux to manage per-item price, quantity, total quantity, and total amount
- Displays images of the mobiles and their details.
- Includes a dropdown to select product quantity, with price shown for a single product.
- Has a "Remove" button to delete a product.
- Shows Subtotal, Total Quantity, and Total Price of selected products.
- Utilized
React Redux
for functionality. - In Redux, a
store
and aslice
are created. - The slice contains
initialState
,name
, andreducers
. - Reducers contain actions. In this project, the actions
setQuantity
,deleteProduct
,setTotals
are defined. - Utilized
useSelector
to extract data from the Redux store state. - Utilized
useDispatch
to create functions that dispatch actions. - Utilized
useEffect
to manage quantity and total amount calculations.