Skip to main content
Debug React
All scenarios

React debugging exercise

Ticks show up late

about 15 minLevel: FoundationalTopics: staterendering

Ticking an item on a packing list does nothing at first, then the ticks appear all at once, and a new trip starts with items already ticked. Find out why and make each tick show straight away.

What you’ll practice: useState, arrays in state, checkboxes

Bug report

Travelers keep a packing list for each trip: they tick items as they pack them, add anything extra, and can hide what is already packed. Start a new trip goes back to the usual list.

They report that ticking an item does nothing at first: the box stays empty and the count stays the same. The ticks appear later, all at once, when they type a new item or hide packed items. And when they start a new trip, some items are already ticked.

Reproduce the issue, identify the cause, and make the smallest reliable fix. Adding items, hiding packed items and starting a new trip must keep working.

Be ready to explain why the ticks show up late and how you verified your change.

Included in Full accessThis and 4 more scenarios, plus every new one

$14.50then $29paid once

Get Full access

Not sure yet? Try a free one first: Editing one row changes another

No account. Your practice stays in this browser.

How it works

  1. Reproduce and fix

    Each scenario is a small app with one real bug. Reproduce it in the live preview, find the cause, and make the smallest fix. Five checks confirm the behavior.

  2. Explain your reasoning

    Answer four short questions: what caused it, what you changed, what you ruled out, and how you verified it.

  3. Review another fix

    Judge a proposed fix for the same bug, approve it or request changes, then see how the checks treat it.