Logic for Modifying Tasks
Finalize the task completion by testing and implementing relevant logic in React
Where we left off
In the previous exercise, we made the Task
component forward user input to a callback function. Now, we will do the same for TaskList
.
If you recall, we currently store tasks in state of the App
component:
const [tasks, setTasks] = useState([]);
const handleNewTask = (task) => setTasks([...tasks, task]);
New handler functions
Do you notice ...
Access this course and 1400+ top-rated courses and projects.