Search⌘ K
AI Features

Implementing "Complete Task" Feature

Explore implementing the Task component that displays tasks, marks them as completed, and reacts to user clicks. This lesson guides you to write failing unit tests first, then develop React code to handle task display, CSS completion status, and click event callbacks, reinforcing test-driven development principles.

Where we left off

In the last lesson, we decided that our TODO app needs to be able to mark tasks as “completed” by clicking on them. The integration test ...