A simple Todo List application built with React and Vite that allows users to create, complete, and delete tasks while displaying real-time task statistics.
- ➕ Add new todo items
- ✅ Mark todos as completed
- 🗑️ Delete existing todos
- 📊 Display total number of todos
- ✔️ Display completed todos count
- ⚡ Real-time UI updates
- 🧩 Component-based architecture using React
| Technology | Purpose |
|---|---|
| React | Frontend UI |
| Vite | Build Tool |
| JavaScript (ES6+) | Programming Language |
| CSS3 | Styling |
| ESLint | Code Quality |
Todo-List-React/
│
├── public/
│ └── vite.svg
│
├── src/
│ ├── components/
│ │ ├── TodoHeader.jsx
│ │ ├── TodoHeader.css
│ │ ├── TodoInput.jsx
│ │ ├── TodoInput.css
│ │ ├── Todos.jsx
│ │ └── Todos.css
│ │
│ ├── App.jsx
│ ├── App.css
│ ├── main.jsx
│ └── index.css
│
├── .gitignore
├── eslint.config.js
├── index.html
├── package.json
├── package-lock.json
├── vite.config.js
└── README.md
Clone the repository:
git clone https://github.com/DefNotArham/Todo-List-React.gitMove into the project directory:
cd Todo-List-ReactInstall dependencies:
npm installnpm run devOpen your browser and visit:
http://localhost:5173
npm run buildPreview the production build:
npm run preview- Enter a task in the input field.
- Click the Add button.
- Mark a task as completed using the ✔️ button.
- Remove a task using the 🗑️ button.
- View the live statistics showing:
- Total Todos
- Completed Todos
Contributions are welcome!
If you'd like to improve this project:
- Fork the repository
- Create a new branch
git checkout -b feature/your-feature-name- Commit your changes
git commit -m "Add your feature"- Push your branch
git push origin feature/your-feature-name- Open a Pull Request