Command Palette

Search for a command to run...

Hectal
Back to the lesson: Topic 27.1 — Plan the App
React · Example 2 of 2

A wireframe made of named component boxes

A mockup in code: every dashed box is a component, labelled from its data-name. Repeated boxes (Column, TaskCard) become one component used many times.

Before writing code, plan the task board with the RADIO steps from Phase 25: list the requirements, sketch a mockup, turn it into a component tree, decide what is state and where it lives, and design the data model and API.

Change the code and press Run (Ctrl+Enter). Predict what will happen first, then break it on purpose and read what changes. Your edits are saved and match the lesson page.

Ready for more? This phase has 6 hands-on exercises with automatic checks.

Practice questions

Write the code in the editor, run it, then open the model answer to compare.

01

Write the state table rows for a new feature: a "Show only my tasks" toggle and a task assignee field.

02

Write the action objects for: adding "Fix bug", moving t3 to Done, and deleting t1.

Explain it without notes

01

Walk through how you'd plan a task board before coding.

02

Why keep tasks in one flat array instead of one array per column?

03

Where should the search text live, and why?

04

What is a derived value? Give two in the task board.

A wireframe made of named component boxes

Preview

Press Run to see the page.

Console

Nothing logged yet.

Expected console output

components: App, Header, Filters, AddTask, Board, Column, TaskCard, Announcer (sr-only)
TaskCard boxes: 6