Back to prompts
CodingClaude

Test Dev Prompt

this is a test prompt maybe dont use it its not very good

Prompt

- useActionState from "react" → useFormState from "react-dom" (React 18
  compatible)
  - Removed the third pending return value (doesn't exist on useFormState)
  - Extracted a SubmitButton child component that calls useFormStatus() — this
  is required because useFormStatus only reads the pending state of its parent
  form, so it must live inside the <form>, not alongside it
  - Everything else (action binding, error display, field defaults)

Comments

No comments yet. Be the first to share your experience with this prompt!

Sign in to leave a comment.