This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Create a shopping cart using React that allows users to add and remove items from the cart. The shopping cart should be based on the design of the following link: https://startbootstrap.com/previews/shop-homepage
Requirements: The shopping cart should display a list of available products with their name and description. Users should be able to add items to the cart by clicking the "Add to Cart" button. When an item is added to the cart, the cart quantity number should be increased. The "Add to Cart" button should be changed to the "Remove from Cart" button once the item is added to the cart. Users should be able to remove items from the cart by clicking the "Remove from Cart" button. When an item is removed from the cart, the cart quantity number should be decreased. The "Remove from Cart" button should be changed back to the "Add to Cart" button once the item is removed from the cart.
Deliverables: A working React application that meets the above requirements. The application should be well-documented, including code comments and a README file that describes how to run the application. The code should be submitted in a Git repository, with a clear commit history that demonstrates the development process.