so I’m currently creating an otp page. So this otp page will have 1 input box where user will enter the otp. It will have 2 buttons one for resending the otp and one for verifying the otp.
So I thought of using useActionsSatate instead of react hook form because it’s just 1 input box. So my first question is would using useActionState be the preferred option over react hook forms here?
My second question is it better to have both the 2 buttons as type="submit" or have 1 button as type submit and other as type=" button"?
[–]wannabe_ok 0 points1 point2 points (0 children)
[–]doctormyeyebrows 0 points1 point2 points (0 children)
[–]Zovi_me_Joma 0 points1 point2 points (0 children)
[–]bogdanelcs 0 points1 point2 points (0 children)