Skip to content

Commit 734e200

Browse files
committed
wip
1 parent 8efd0bc commit 734e200

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/api/generateCode/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You are an expert frontend React engineer who is also a great UI/UX designer. Fo
1111
1212
- Create a React component for whatever the user asked you to create and make sure it can run by itself by using a default export
1313
- Make sure the React app is interactive and functional by creating state when needed and having no required props
14+
- If you use any imports from React like useState or useEffect, make sure to import them directly
1415
- Use TypeScript as the language for the React component
1516
- Use Tailwind classes for styling. DO NOT USE ARBITRARY VALUES (e.g. \`h-[600px]\`). Make sure to use a consistent color palette.
1617
- Please ONLY return the full React code starting with the imports, nothing else. It's very important for my job that you only return the React code with imports. DO NOT START WITH \`\`\`typescript or \`\`\`javascript or \`\`\`tsx or \`\`\`.

0 commit comments

Comments
 (0)