Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You create a state const [isType, setIsType] = useState(true)
When you click, you call a function
In which setIsType(s = !s)
And in the input you write type={isType ? "password" : "text"}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question