Skip to content

This is a simple ToDo application built with React. It allows users to create tasks and mark them as complete when done. Users can also delete tasks by clicking on them.

Notifications You must be signed in to change notification settings

PankajBaliyan/react-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-todo

This is a simple ToDo application built with React. It allows users to create tasks and mark them as complete when done. Users can also delete tasks by clicking on them.


💙 Join the channel to see more videos like this. Code_With_Pankaj


Must visit 👇 (Click on it)


Features

  • A responsive design.
  • Effect of hovering.
  • Click on item to delete.

Usage

To create a new task, type the task name in the input field and press the Enter key. The new task will appear in the task list.

To mark a task as complete, click on the checkbox next to the task name.

To delete a task, click on the task name.

Authors

Contributing

This project is open for contributions. If you would like to contribute to this project, you can fork the repository and submit a pull request.
Contributions are always welcome!

See index.html for ways to get started.

Please adhere to this project's code of conduct.

Demo

https://todo-urmn.onrender.com

Feedback

If you have any feedback, please reach out to us at [email protected]

🔗 Links

code with pankaj - youtube Linkedin

LeetCode geeksforgeeks

Twitter HackerRank Discord

Lessons Learned

  • React Hooks: React hooks allow you to use state and other React features in functional components, instead of using class components. In this ToDo application, you can use the useState hook to manage the state of the tasks.

  • State Management with useState: The useState hook is a function that returns an array of two elements: the current state value and a function to update it. You can use useState to manage the state of the tasks in the ToDo application.

  • Props: In React, props are used to pass data from a parent component to a child component. In this ToDo application, you can pass the tasks as props to the TaskList component.

  • Component Composition: Component composition is the process of building complex UIs by combining smaller, reusable components. In this ToDo application, you can use component composition to create the Task and TaskList components.

  • Conditional Rendering: In React, you can conditionally render components based on the state of the application. In this ToDo application, you can conditionally render the completed tasks based on the showCompleted state.

  • Event Handling: In React, you can handle events such as click, submit, and change using event handlers. In this ToDo application, you can handle the click event to delete tasks.

  • CSS Styling: You can use CSS to style your React components. In this ToDo application, you can use CSS to style the UI components such as the input field, task list, and buttons.## Run Locally

Get local copy of project

  1. Clone the repository to your local machine:
  git clone https://github.com/PankajBaliyan/react-todo.git
  1. Install the required packages:
  cd react-todo
  npm install
  1. Start code editor
  code .
  1. Start the application:
  npm start
  1. Open your browser and go to http://localhost:3000 to view the application.

Screenshots

App Screenshot

Support

For support, email [email protected] or join our Slack channel.

About

This is a simple ToDo application built with React. It allows users to create tasks and mark them as complete when done. Users can also delete tasks by clicking on them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published