Import ToDoList Component

Get to know how to pass the props in a function.

We'll cover the following...

The ToDoList component

Let’s now import the ToDoList component and set the item and onDelete properties. The item property contains an array of tasks that are mapped over to display a list of tasks.

The onDeleteHandler method handles the onDelete function, which deletes the tasks based on their unique ids. We return the ToDoList component after importing the ...