Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

e typescript

// For onChange

update = (e: React.ChangeEvent<HTMLInputElement>): void => {
    this.props.login[e.currentTarget.name] = e.currentTarget.value
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript
ADD COMMENT
Topic
Name
5+5 =