Loading lesson…
Level 1 · Apprentice0 XP
Why a React app gets slow, how to find out, and the few fixes that matter.
Step 1 / 5
ProblemEvery key you type in a search box makes the whole page lag. Someone wraps every function in useCallback. It is still slow. Nobody measured anything.
← → step
Before this: Client state: when to use a store
🛠️ 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.Make a page with a text input above a list of 3,000 rows, with the input state in the page. Record typing in the React Profiler. Then move the input and its state into its own component and record again. Compare what rendered.