This is a simple Todo application built with React, using the Context API for state management and Local Storage for persistence. The project was created with guidance from Hitesh Sir on the "Chai aur Code" YouTube channel.
- Add, edit, delete, and check/uncheck todos
- Persist todos in local storage
- Responsive UI
- Node.js
- Clone the repository:
git clone https://github.com/MrKuldeep01/ToDo_Context_Api_Local_Storage.git
cd ToDo_Context_Api_Local_Storage
- Install the dependencies:
npm install
To start the development server, run:
npm run dev
The application will be available at https://todowithcontextapi.netlify.app
.
src/
|-- components/
| |-- TodoForm.jsx
| |-- TodoList.jsx
|-- contexts/
| |-- index.js
| |-- TodoContext.jsx
|-- App.jsx
|-- index.js
- TodoForm: Form component to add new todos.
- TodoList: Component to render the list of todos.
- TodoContext: Context API setup for managing todos state.
- Type your todo description in the input field.
- Press Enter or click the Add button to add the todo to the list.
- Click the edit button (✏️) next to the todo you want to edit.
- Modify the todo description.
- Press Enter or click the Save button (📁) to save your changes.
- Click the delete button (❌) next to the todo you want to remove.
- Click the checkbox next to the todo to mark it as complete/incomplete.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
- Thanks to
Hitesh Sir
for the amazing tutorial on the "Chai aur Code" YouTube channel.