title: How to properly use a change function on react button and not have any unused variables
body: <p>I'm looking to have a basic button in which I can pass a <code>type</code> to a function on click. However, I would like to do it without having the <code>event</code> within the function since I do get a linting error — <code>event is definied but never used</code>. </p>
  
  <pre><code>const Test: React.FC = () =&gt; {
    const [state, setState] = useState(null);
    const handleClick = (type: string) =&gt; (event: object) =&gt; {
      switch (type) {
        case 'CASE_1':
          doSomething(state);
          break;
        default:
          return;
      }
    };
  
    return (
      &lt;button onClick={handleClick('CASE_1')}&gt;CLICK ME&lt;/button&gt;
    )
  }
  </code></pre>