vendredi 6 novembre 2020

How to determinate when user types a '@' in an input

I want to turn a disabled button to true when a user types a @.

const isDisabled = () =>{
    const value = getValues('email')
    if ...
  }

I need that if to return true if the input has a @, false if it doesn't

Aucun commentaire:

Enregistrer un commentaire