Capstone · 10 min read · Intermediate
React Capstone: Interactive Task Board
Combine component composition, immutable state updates, derived counts, and controlled inputs in a task board.
What you'll learn
- Manage an immutable list of tasks with add and toggle handlers
- Derive remaining task counts during render
- Prepare for the React Final Exam and Certificate
In this capstone, you will combine React’s core patterns: single source of truth state, immutable updates, derived counts, and keyed list rendering.
Fill-in-the-Blank Capstone
Immutable Toggle by ID
Toggle done on the matching task without mutating the original array.
setTasks((prev) =>
prev.((t) => (t.id === id ? { ...t, done: !t. } : t))
);Capstone Playground
JSXInteractive React Task Board (Live JSX)
Live React Preview
Check Your Understanding
Score: 0 / 1
1. In React, how do you toggle a single item's done boolean inside a tasks array state?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.