Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

react hooks html imput on change

 const [username, userInput] = useInput({ type: "text" });
 const [password, passwordInput] = useInput({ type: "text" });

 return <>
   {userInput} -> {username} <br />
   {passwordInput} -> {password}
 </>;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #hooks #html #imput #change
ADD COMMENT
Topic
Name
7+8 =