title: React TypeScript: Correct ref type for HTML Select with an OnChange with useRef
body: <p>Ive not used the useRef hook on a select box before, typescript seems to be complaining that I've got the wrong type for the ref?</p>
  
  <pre><code>import React, {useState, useRef} from 'react';
  
  
  const App: React.FC = () =&gt; {
    const [state, setState] = useState({country: ''});
    const formValue = (event: React.ChangeEvent&lt;HTMLInputElement&gt;) =&gt; {setState({...state, [event.target.name]: event.target.value.trim()})}
    const country = useRef&lt;HTMLSelectElement&gt;(null);
  
    return (
      &lt;div className="layout-grid"&gt;
        &lt;div className='layout-title'&gt;Identity&lt;/div&gt;
  
        &lt;div className='section-grid'&gt;
          &lt;div&gt;Country Information&lt;/div&gt;
          &lt;div&gt;
            &lt;label&gt;Country&lt;/label&gt;
            &lt;select ref='country' onChange={formValue} name="country" value={state.country} &gt;
              &lt;option value="First Choice"&gt;First Choice&lt;/option&gt;
              &lt;option value="Second Choice"&gt;Second Choice&lt;/option&gt;
              &lt;option value="Third Choice"&gt;Third Choice&lt;/option&gt;
              &lt;option value="Fourth Choice"&gt;Fourth Choice&lt;/option&gt;
            &lt;/select&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>the error im getting is </p>
  
  <pre><code>Type '(event: ChangeEvent&lt;HTMLInputElement&gt;) =&gt; void' is not assignable to type '(event: ChangeEvent&lt;HTMLSelectElement&gt;) =&gt; void'.
    Types of parameters 'event' and 'event' are incompatible.
      Type 'ChangeEvent&lt;HTMLSelectElement&gt;' is not assignable to type 'ChangeEvent&lt;HTMLInputElement&gt;'.
        Type 'HTMLSelectElement' is missing the following properties from type 'HTMLInputElement': accept, align, alt, checked, and 33 more.ts(2322)
  index.d.ts(2117, 9): The expected type comes from property 'onChange' which is declared here on type 'DetailedHTMLProps&lt;SelectHTMLAttributes&lt;HTMLSelectElement&gt;, HTMLSelectEle
  </code></pre>