title: Get value of select onChange in Functional Component
body: <p>I have a select in a functional component and I cannot get the value when I select an option.
  I could only find solution for a class based component. I thought useState would do the trick but I am missing something...</p>
  <pre><code>const ClientChoice = (props) =&gt; {
      const [selectedClient,setSelectedClient] = useState([]);
  
      function handleSelectChange(event) {
          setSelectedClient(event.target.value);
      }
  
      return (
          &lt;select onChange={handleSelectChange}&gt;
              &lt;option value=&quot;one&quot;&gt;One&lt;/option&gt;
              &lt;option value=&quot;two&quot;&gt;Two&lt;/option&gt;
              &lt;option value=&quot;three&quot;&gt;Three&lt;/option&gt;
          &lt;/select&gt;
      )
  }
  </code></pre>
  <p>The target is <code>null</code>.</p>