Loading lesson…
Level 1 · Apprentice0 XP
Showing many items, and the small prop that decides whether React keeps or rebuilds them.
Step 1 / 5
ProblemA to-do list has a checkbox per row. You delete the first item and the tick jumps to another task. The data is right. The screen is wrong.
← → step
Before this: State and rendering
🛠️ 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.Render a list where each row has its own text input. Use the index as key, type in the first row, delete it, and watch the text land in the wrong row. Change the key to the item id and repeat.