Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

react form event type


  onChange = (e: React.FormEvent<HTMLInputElement>): void => {
    this.setState({ text: e.currentTarget.value });
  };
Source by react-typescript-cheatsheet.netlify.app #
 
PREVIOUS NEXT
Tagged: #react #form #event #type
ADD COMMENT
Topic
Name
6+2 =