Writing effective prompts
The quality of your output depends heavily on how clearly you describe the task. These patterns consistently produce better results.
"Make a button"
"Add a "Subscribe" button to the top-right of the navbar. It should be outlined with a primary color border, link to /auth, and shrink to an icon on mobile."
"Create a component, then add state, then add a click handler"
"Build a counter component that starts at 0, increments on click, and resets to 0 when it reaches 10."
"Add authentication"
"Add a login form to the Auth page at src/pages/Auth.tsx. Use the same card style as the existing form on that page."
"Redesign the whole app"
"Only change the landing page hero section. Don't touch other components."