title: Type error when using controlled datetime picker
body: <p>How do I set a react state with a event.target.value in a datetime picker?</p>
  <p>Here is my code that is not working:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const [ date, setDate ] = useState(new Date());
  
  
  &lt;input type="datetime-local" className="form-control" onChange={event =&gt; setDate(event.target.value)} value={date}/&gt;   </code></pre>
  </div>
  </div>
  </p>
  <p>Here is the error that shows me:</p>
  <blockquote>
  <p>Argument of type 'string' is not assignable to parameter of type 'SetStateAction'.ts(2345)</p>
  </blockquote>
  <p>Do you know how can I fix this?</p>