Search⌘ K
AI Features

Logic for Modifying Tasks

Explore how to write and test logic for modifying tasks in a React app. This lesson covers state handling for task completion, creating toggle handlers, and integration tests using Jest to ensure user interactions work as expected.

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:

 ...