Command Palette

Search for a command to run...

Hectal
Phase 3: Conditions and Lists
React · Exercise 4 of 5 PreviousNext
Beginner

Fix the notes that jump rows

Each row has a person's name in a <span> and a note box (<input className="note">). The button id="add-top" adds Meera at the top of the list.

Right now, if you type a note next to Asha and then add Meera, the note jumps to Meera's row. Fix it so every note stays next to the person it was typed for.

Keep the console free of key warnings.

What Check tests

  1. Two rows at the start: Asha and Ravi
  2. After adding Meera, Asha's note is still next to Asha
  3. Meera's new row has an empty note
  4. Meera is first of three rows
  5. No key warnings in the console

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.