React debugging exercise
Search results go backwards
A customer search sometimes shows results that do not match the text in the field. Reproduce it, find the cause, and make the smallest reliable fix.
What you’ll practice: useEffect, data fetching, async responses
Bug report
Our customer search sometimes displays results that do not match the text in the search field.
Support can reproduce it by typing quickly, especially on slow connections. Reproduce the issue, identify the cause, and implement the smallest reliable fix.
Keep loading, empty, and error states working.
Be ready to explain the failure sequence and how you verified your change.
Practice this scenario
After you finish your fix, you can review a proposed fix for the same bug.
No account needed. Your attempts, code and answers stay in this browser. How storage works (opens in a new tab)
Practice on a computer
The code editor needs a bigger screen. Get this page’s link by email, and open it on your computer.
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.