Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript react onchange event type

type Props = {
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void
}

export Input:React.FC<Props> ({onChange}) => (
  <input type="tex" onChange={onChange} />
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #react #onchange #event #type
ADD COMMENT
Topic
Name
6+9 =