Put in order · Vibe coding with Claude Code course · Module 4: Instagram clone
Sorting: The Post Button
Arrange what happens before the Post button submits a comment:
Items to put in order
- onChange saves it through setDraft
- A click on Post submits the comment
- disabled={!draft.trim()} enables the Post button
- You type text in the comment field
You can check the correct answer by solving this task in the CodeWorlds game.