Answers for "typescript react onchange event type"

2

typescript react onchange event type

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

export Input:React.FC<Props> ({onChange}) => (
  <input type="tex" onChange={onChange} />
)
Posted by: Guest on October-18-2020
2

typescript react input type

onChange={(
                ev: React.ChangeEvent<HTMLInputElement>,
            ): void => setInputValue(ev.target.value)}
Posted by: Guest on September-10-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language