Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typescript react handle change

export default () => {

  const onChangeHandler = ((e: React.ChangeEvent<HTMLInputElement>): void => {
    console.log(e.currentTarget.value)
  }

  return (
    <div>
      <Input onChange={onChangeHandler} />
    </div>
  );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #react #handle #change
ADD COMMENT
Topic
Name
8+2 =