Put in order · Vibe coding with Claude Code course · Module 12: Medium clone
Changing the text of one block
Put in order, in one line, a change of a block's text through an updater function:
Items to put in order
- (prev) =>
- prev.map((b) =>
- (b.id === id ? { ...b, text } : b)));
- setBlocks(
You can check the correct answer by solving this task in the CodeWorlds game.