title: moment on DatePicker react component
body: <p>I am using the next React component:</p>
  
  <pre><code>&lt;DatePicker
          selected = {this.state.startDate}
          onChange = {(d) =&gt; {console.log('date = ' + d); 
                      this.setState({startDate: d})}}
                      dateFormat="MMMM, DD, YYYY"
  /&gt;
  </code></pre>
  
  <p>it works fine if startDate is equal to moment() but I get error message if I execute</p>
  
  <pre><code>this.setState({startDate:   momdate});
  </code></pre>
  
  <p>where</p>
  
  <pre><code>var momdate = moment('2017-10-22').valueOf() / 1000;
  </code></pre>
  
  <p>and this instruction is executed at the </p>
  
  <pre><code> componentDidMount()
  </code></pre>
  
  <p>react function. The error message is:</p>
  
  <pre><code>  Uncaught TypeError: e.clone is not a function
  </code></pre>
  
  <p>Any ideas, please?</p>