title: How do I add type to onChange & onClick functions in typescript react
body: <p>I have defined a component</p>
  <pre><code>type Props = {
    label:string,
    autoFocus:boolean,
    onClick:(e: React.ClickEvent&lt;HTMLInputElement&gt;) =&gt; void,
    onChange: (e: React.ChangeEvent&lt;HTMLInputElement&gt;) =&gt; void
  }
  
  const Input = ({ handleChange, label, autoFocus, handleClick  }:Props) =&gt; (
      &lt;TextField
        onChange={handleChange}
        required
        label={label}
        autoFocus={autoFocus}
        onClick={handleClick}
        }
      /&gt;
  );
  </code></pre>
  <p>I am converting my react components into typescript for the first, I am a bit confused about what type should I write for functions that I am retrieving it props, Above type Props initiation, I get that string &amp; boolean but how someone should handle event function typing</p>