title: Trigger click in Typescript - Property 'click' does not exist on type 'Element'
body: <p>I would like to trigger a click event on a HTML element in Typescript/Reactjs.</p>
  
  <pre><code>let element: Element = document.getElementsByClassName('btn')[0];
  element.click();
  </code></pre>
  
  <p>The code above does work. But I'm getting a Typescript error: </p>
  
  <pre><code>ERROR in [at-loader] ./src/App.tsx:124:17
  TS2339: Property 'click' does not exist on type 'Element'.
  </code></pre>
  
  <p>So what would be the correct way to do this?</p>