Create a TODO list application that allows users to add and delete tasks but using the context API with a centralized store and action functions.
Do not clone this repository.
The first step to start coding is cloning the react.js boilerplate on your local computer or opening it using gitpod.
a) If using Gitpod (recommended) you can clone the boilerplate by clicking here.
b) If working locally type the following command from your command line: git clone https://github.com/4GeeksAcademy/react-hello-webapp
.
๐ Important: Remember to create a new repository, update the remote URL (git remote set-url origin <your new url>
), and upload the code to your new repository using add
, commit
and push
.
Your app needs to look like this.
The tasks are added when the user presses enter on the keyboard or you can have your own button.
The delete icon shows only when the task is hovered.
The user can add as many tasks as it wants.
When there are no tasks the list should display "No tasks, add a task"
There is no way to update a task, the user will have to delete and create it again.
Do not go straight to the code, think first and have a viable strategy.
What components will you create? Draw the project on a white paper and identify components.
Where are the tasks going to be stored in your component?
Read about controlled components inputs in react.js, you will need to understand the concept.