A simple React-based task management app where you can add, complete, and delete tasks. It includes tabs to view active and completed tasks.
- Add Tasks: Add new tasks to your list.
- Complete Tasks: Mark tasks as done and move them to the "Completed" tab.
- Delete Tasks: Remove tasks from the list.
- Tab Navigation: Switch between "Tasks" and "Completed" views.
- Clone the repository:
git clone https://github.com/Hareem-Gohar/Task-Management-App.git
- Navigate to the project directory:
cd task-management-app
- Install dependencies:
npm install
- Start the development server:
Visit
npm run dev
http://localhost:5173
in your browser to see the app.
src/
: Contains React components and styles.TaskBox.js
: Main component with task input and tabs.TaskInput.js
: Form for adding tasks.TaskList.js
: Displays tasks and handles completion/deletion.TaskItem.js
: Represents individual tasks.Tabs.js
: Manages tab navigation.Button.js
: Reusable button component.Header.js
: App header.
index.css
: Global styles.
Tasks are saved in localStorage
to keep your data even after refreshing the page.