Answers for "property 'files' does not exist on type 'eventtarget'.ts(2339) react"

2

property 'name' does not exist on type 'eventtarget' react

// If you have to use event.target itself, you would have to cast the object:

const { name } = event.target as HTMLButtonElement;
Posted by: Guest on July-03-2020

Code answers related to "property 'files' does not exist on type 'eventtarget'.ts(2339) react"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language