call(back)

Build a Todo List

Build a todo list. The markup ships with a hardcoded task — replace it with real state.

Requirements

  • Typing a task and pressing Add (or Enter) appends it to the list and clears the input.
  • Submitting an empty or whitespace-only input does nothing.
  • Each task has a delete button that removes exactly that task.
  • New tasks get a stable identity — deleting the second of three identical tasks must not confuse React about which row went away.

Follow-up

Where would completion toggles and an "N items left" counter fit? What changes if tasks must survive a reload?

Asked at