Answers for "any property 'files' does not exist on type 'eventtarget & element'. typescript 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 "any property 'files' does not exist on type 'eventtarget & element'. typescript react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language