Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

only digits pattern

ref={register({
  required: true,
  pattern: /^d*$/,
  validate: (value) => {
     return !!value.trim();
  },
})}
 
PREVIOUS NEXT
Tagged: #digits #pattern
ADD COMMENT
Topic
Name
5+1 =