A modern, high-performance Todo application built using React, TypeScript, Vite, and Tailwind CSS. Designed with best practices in mind for performance, scalability, and maintainability.
- ⚛️ React 18 with concurrent features
- 🔐 TypeScript for static type checking
- ⚡ Vite for lightning-fast development and builds
- 🎨 Tailwind CSS for utility-first styling
- 🧪 Vitest for fast unit & integration testing
- 🧠 Optimized with
React.memo,useMemo,useCallback - 🧼 Linting & formatting with ESLint + Prettier
- 📱 Fully responsive and accessible design
- Node.js
v16+ - npm or yarn
# Clone the repository
git clone https://github.com/your-username/todo-app-optimized.git
cd todo-app-optimized
# Install dependencies
npm install
# Start the dev server
npm run devnpm run testnpm run build
npm run previewsrc/
├── components/ # Reusable UI components
├── hooks/ # Custom hooks like useTodos
├── types/ # Type definitions
├── utils/ # Utility & performance helpers
├── data/ # Mock data
├── test/ # Unit tests (Vitest)
├── App.tsx # Root component
├── main.tsx # Entry point
└── index.css # Tailwind styles
- ✅ Hooks: 95% Coverage
- ✅ Components: 88% Coverage
- ✅ Utils: 100% Coverage
npm run test:watch # Watch mode
npm run test:coverage # Generate coverage report-
🚀 Lighthouse Scores:
- Performance: 95
- Accessibility: 98
- Best Practices: 100
- SEO: 95
-
🧩 Bundle:
- Initial: ~98 KB (gzipped)
- Lazy Loaded: ~47 KB
- Total Assets: ~145 KB
| Tool | Purpose |
|---|---|
| React | UI Library |
| TypeScript | Type Safety |
| Vite | Build Tool |
| Tailwind CSS | Styling |
| Vitest | Testing Framework |
| ESLint/Prettier | Code Quality |
| Device | Screen Width |
|---|---|
| Mobile | < 768px |
| Tablet | 768px – 1024px |
| Desktop | > 1024px |
- Vercel
- Netlify
- GitHub Pages
- Docker
npm run build
npm run preview- Fork the repo
- Create a feature branch
- Write clean, tested code
- Run
npm run lint && npm run test - Create a PR with proper title & description
This project is licensed under the MIT License.
Built with 🔥 by Ajay Dhangar
