reactjs - Typescript input onchange event.target.value type - Stack Overflow

PHOTO EMBED

Wed Sep 20 2023 07:41:09 GMT+0000 (Coordinated Universal Time)

Saved by @Abdulaziz #javascript

const onChange = (e: React.FormEvent<HTMLInputElement>) => {
  const newValue = e.currentTarget.value;
}
content_copyCOPY

https://stackoverflow.com/questions/40676343/typescript-input-onchange-event-target-value