A simple Todo List application built with React. This app allows users to manage tasks with functionalities to add, edit, delete, and mark tasks as complete. The tasks are stored in the browser's local storage, so they persist across page reloads.
- Add new tasks
- Edit existing tasks
- Delete tasks
- Toggle task completion status
- Persist tasks using local storage
-
Clone the repository:
git clone git@github.com:GiovanniTY/intro-react.git
-
**Navigate to the project directory: **
cd react-intro -
Install dependencies:
npm install
- Start the development server:
npm start
- Open your browser and navigate to:
http://localhost:5173
src/App.jsx: Main component that handles the state and logic for adding, editing, deleting, and toggling tasks. Manages local storage integration.src/assets/composants/TaskForm.jsx: Component responsible for rendering the form to add new tasks.src/assets/composants/TaskList.jsx: Component responsible for rendering the list of tasks with options to edit, delete, and toggle completion.
Manages the main state of the todo list and handles interactions such as adding, editing, deleting, and toggling tasks. It also manages the integration with local storage to persist data.
Provides an input field and a button to add new tasks. It uses a ref to access the input element directly and passes the task data up to the parent component.
Renders the list of tasks. Provides UI elements to edit, delete, and toggle the completion status of tasks. Allows for inline editing of tasks.
Feel free to submit issues, feature requests, or pull requests. Contributions are welcome!
![![Todo List App Screenshot]](/GiovanniTY/intro-react/raw/main/react-first-app/src/assets/img/todo-list.png)