Level 1 · Apprentice0 XP
What the user sees while waiting, when something breaks, and during a slow update.
Step 1 / 5
ProblemOne component throws because a field is missing in the API response. The whole page goes blank. Elsewhere, every component shows its own spinner, so the page flickers in ten places as data arrives.
← → step
Before this: Performance
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Write an ErrorBoundary class component with a fallback prop. Put it around a component that throws when a button is pressed, next to a second component that must keep working. Then filter a large list with useTransition and show the old list dimmed while pending.