Question · Vibe coding with Claude Code course · Module 8: Slack clone
Quiz: The key of the thread field
Why does ThreadPanel give the reply field key={parent.id}?
Answer options
- Because without a key React will not display the field
- So Prettier knows which file to format
- Because moving to another thread changes only the address parameter, and without a key the draft from the previous thread would stay in the field
- So the server knows who the author of the reply is
You can check the correct answer by solving this task in the CodeWorlds game.