Extending HTML elements in React and TypeScript while preserving props

后端 未结 6 1101
星月不相逢
星月不相逢 2021-02-04 23:58

I just can\'t wrap my head around this I guess, I\'ve tried probably half a dozen times and always resort to any... Is there a legitimate way to start with an HTML

6条回答
  •  孤城傲影
    2021-02-05 00:24

      private yourMethod(event: React.MouseEvent): void {
      event.currentTarget.disabled = true;
      }  
    
     

提交回复
热议问题