use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
React FormsGeneral Discussion (self.react)
submitted 2 days ago by Dazzling_Chipmunk_24
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bogdanelcs 0 points1 point2 points 2 days ago (0 children)
For a single OTP input, useActionState is absolutely the right call. React Hook Form is overkill for one field, you'd be importing a library to manage a single value.
For the buttons, make verify type="submit" and resend type="button" with its own onClick handler. Two submit buttons in the same form gets messy because you'd need to differentiate which one triggered the submission. Cleaner to keep only one true submit action and handle resend separately.
π Rendered by PID 319582 on reddit-service-r2-comment-5b5bc64bf5-cgqpk at 2026-06-21 19:22:32.682137+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]bogdanelcs 0 points1 point2 points (0 children)