Answers for "property 'name' does not exist on type 'eventtarget' 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
0

Property 'value' does not exist on type 'EventTarget & Element'.

(e.target as HTMLButtonElement).value
Posted by: Guest on December-23-2020

Code answers related to "property 'name' does not exist on type 'eventtarget' react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language