Coding task · Vibe coding with Claude Code course · Module 3: Twitter clone
Practice: Counter with useState
The useState setter changes the state and the component shows the new value. The test clicks the +1 button twice and checks that the counter shows 1, then 2.
Task
Write a Counter component (export default), a loot counter. Add 'use client' at the top of the file. Keep the number in a count state with useState(0), display it, and add a +1 button next to it that increases the counter by 1 on every click.