react-hook-form validate rule for a phone field.
validate
Accepts any leading fragment of the current dial code (e.g. +, +1) so validation does not fire while the user is still typing the country code; anything longer must be a valid number.
+
+1
react-hook-form
validaterule for a phone field.Accepts any leading fragment of the current dial code (e.g.
+,+1) so validation does not fire while the user is still typing the country code; anything longer must be a valid number.