title: Sending event handlers as props into a React component using TypeScript
body: <p>I have the following code for a React component. What's the right way to declare the two <code>onClick</code> handlers passed into the component?</p>
  
  <pre><code>interface LoginFormProps {
      loginClicked: ???? &lt;--- onClick handler signature
      cancelClicked: ???? &lt;--- onClick handler signature
  }
  
  class LoginForm extends React.Component&lt;LoginFormProps, {}&gt; {
      render() {
          &lt;form&gt;
              &lt;button onClick={loginClicked}&gt;
                  Login
              &lt;/button&gt;
              &lt;button onClick={cancelClicked}&gt;
                  Cancel
              &lt;/button&gt;
          &lt;/form&gt;
      }
  }
  </code></pre>