property 'value' does not exist on type 'eventtarget in html code example Example: Property 'value' does not exist on type 'EventTarget & Element'. (e.target as HTMLButtonElement).value