A simple Todo application built with React. This application allows users to add new items to their Todo list, mark items as completed, delete items, and edit existing items.
- Add Todo: Users can add new todo items.
- Toggle Todo: Mark items as completed or incomplete.
- Delete Todo: Remove items from the list.
- Edit Todo: Update the title of existing todo items.
- Persist Todos: Todos are saved in local storage, so they persist across page reloads.
-
Clone the repository:
git clone https://github.com/Kamaruddheen/todo.git cd todo -
Install dependencies:
npm install
-
Run the application:
npm start
The application will be available at
http://localhost:3000
- App: The main component that uses the
useTodoshook for state management and renders theNewTodoFormandTodoListcomponents. - NewTodoForm: Handles the input for new todos and calls
addTodo. - TodoList: Renders the list of todos and passes down props to
TodoItem. - TodoItem: Renders each todo item with options to toggle checkbox, edit, and delete.