Coding task · Vibe coding with Claude Code course · Module 3: Twitter clone
Practice: Post component
It is a message on the ship's bulletin board. The test renders the post with different props, so don't hard-code the data.
Task
Write a Twitter-style Post component (export default): describe the props author and content of type string and likes of type number in a TypeScript interface. Show the author in an h3 heading, the content in a p paragraph and the number of likes in a button. Style the post with Tailwind classes in className, e.g. bg-white p-6 rounded-lg shadow.