Description

A playlist manager lets users type a song name and click Add Track to append it to the playlist.

Anomaly

Type a song name and click Add Track - a new row appears in the playlist but it is completely empty. The input clears correctly but the song name never shows up

Constraint
Do not replace useReducer with useState
Hint
Consult the SenseiOnly for those truly stuck · Flip to reveal

The reducer receives everything the dispatch sends - are you reading the right field?

Loading editor…
Correct Solution
Loading...

Why this fixes it

The dispatch sent { type: "ADD", name: input } but the reducer read action.title, which was undefined — so every track was appended as an empty string. Changing action.title to action.name in the reducer reads the field that was actually dispatched, and the song name appears correctly.

Expected OutputGoal State
Your OutputLive