Put in order · Vibe coding with Claude Code course · Module 13: Twitch clone
Order: steps of send
Arrange the steps of the send function in LiveChat:
Items to put in order
- An empty text ends the function: if (!text) return
- Append it to the list: setMessages((prev) => ...)
- Build the message with crypto.randomUUID() and findEmotes(text)
- Trim the text: draft.trim()
You can check the correct answer by solving this task in the CodeWorlds game.