
Lukasz guides beginners to build a simple react todo list app from scratch, covering HTML, CSS, and JavaScript, and showing how to enter, add, and complete tasks.
For the class project, you will be adding more features to our todo list application. Some ideas which you can try out:
Instead of deleting completed tasks, just show them as done by crossing them out, greying them out, etc.
Add a clear all button to delete all tasks
Add a complete all button to mark all as completed
And anything else that you can think of!
If you do not have a finished copy of the project, you can fork it from CodeSandbox linked the Resources section.
Plan your React todo app by identifying components and states. Build a form with a text field and button, and a list of items with text and a right-side button.
Explore the development environment by setting up a React project in Code Sandbox IO, log in, create a new sandbox, and view live updates across files, code, and browser.
Explore the React project structure, including package.json, index.html, index.js, and a components folder with the form component and its css, plus basic styling setup.
Build your first React functional form component with HTML inputs and a submit button, style it with form.css, and import it into the app.
Convert an uncontrolled text input into a controlled component using useState to store and bind the entered text, then on submit prevent default, log the value, and reset the input.
Create a reusable todo list using nested list item components, import and render them in a to do list, and style with css for a centered layout.
Learn to delete a todo by creating a remove function that copies the list with the spread operator, splices out the item, and passes the function to list items.
For the class project, you will be adding more features to our todo list application. Some ideas which you can try out:
Instead of deleting completed tasks, just show them as done by crossing them out, greying them out, etc.
Add a clear all button to delete all tasks
Add a complete all button to mark all as completed
And anything else that you can think of!
If you do not have a finished copy of the project, you can fork it from CodeSandbox linked the Resources section.
This course will guide you on how to start a React project from scratch. We will cover everything from planning and designing the project to coding it out using HTML, CSS, and React from scratch.
While making our todo list, we will cover the following topics:
How to use CodeSandbox for faster development
How to structure a React project
How to create functional components
How to add state using useState
How to use props and pass props across multiple levels
How to reuse components and its benefits
How to create nested components
After taking this course, you will have a good understanding of how to create a React project from scratch and how different React concepts can be applied in real-life projects. By the end you’ll also have a todo list application which you can show off to your friends!
This course is perfect if you want to get started with React or have watched a few tutorials and want to understand how to apply the concepts you've learnt into an actual project.
This course also includes a class project which you can complete once you are done with the course. This will help strengthen your concepts and you can share what you have made with the community!