Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

event typescript

onChange = (e: React.FormEvent<HTMLInputElement>) => {
    const newValue = e.currentTarget.value;
}
onChange = (e: React.ChangeEvent<HTMLInputElement>)=> {
   const newValue = e.target.value;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #event #typescript
ADD COMMENT
Topic
Name
6+9 =