title: Value of datetime-local with React
body: <p>I'm doing my first project with React and I've hit a wall in how to use the datetime-local field using the usual React logic.</p>
  
  <p>For any given input field I would do as instructed in the <a href="https://facebook.github.io/react/docs/forms.html" rel="noreferrer">React documentation</a>.</p>
  
  <p>The issue for me is that the datetime-local field has some annoying return-values. It returns an empty string in <strong>two</strong> cases. One case is when you use the built-in clear button and the other case is when it's set to an invalid date - For example 29th February 2015.</p>
  
  <p>Since this is the case I can't just set the value of the field equal to the value of the event.target.value, since that would reset the field every time someone hits an invalid date.
  If I tell it to do nothing when encountering an empty return value that means that you can't use the clear button on the field anymore.</p>
  
  <p>I've been unable to find anything related to this issue so I'm hoping that someone in here has an idea to solve it.</p>