A simple and interactive shopping list web application built with Vite, React, and Bootstrap. Users can add and remove items from their list dynamically.
- Add items to your shopping list
- Delete individual items from the list
- Styled with Bootstrap for clean, responsive UI
- State is managed using React hooks
Follow these steps to run the project locally.
git clone https://github.com/your-username/shopping-list-app.git
cd shopping-list-app Make sure you have Node.js (v16+) installed. Then install all the required packages:
npm installnpm run devAfter running the command, open your browser and go to:
http://localhost:5173/shopping-list-app/
├── public/
├── src/
│ ├── components/
│ │ └── List.jsx # Component to display and manage the shopping list
│ ├── App.jsx # Main React component
│ ├── main.jsx # Entry point for the Vite + React app
│ └── index.css # Custom styles (includes Bootstrap)
├── package.json
├── vite.config.js
└── README.mdThis project uses Bootstrap and custom CSS:
- Bootstrap is installed via NPM and imported into the project.
- Dark mode styling and buttons are enhanced for clarity and usability.
Make sure your CSS or index.css includes:.
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap-icons/font/bootstrap-icons.css';-
Type an item name in the input field.
-
Click "Add to the shopping list".
-
The item appears in the list with a "Delete from this list" button.
Click on "Delete from this list" next to any item to remove it instantly from the shopping list.
React's useState hook is used to:
-
Store the current list of items.
-
Update the list when new items are added or deleted.
-
React
-
Vite
-
Bootstrap
-
Bootstrap Icons
-
Persist list using local storage or database.
-
Add input validation and duplicate checks.
-
Responsive layout improvements.
Jcdelega