title: print variable inside function inside render with moment.js
body: <p>I hava a component with this render:</p>
  
  <p>I have the function moment (moment.js library) to print the date, but i get 'invalid date'</p>
  
  <pre><code>render() {
    let date = '20150201';
    return (
      &lt;div&gt; {moment({date},'YYYYMMDD').format("DD MM YYYY")}&lt;/td&gt;
  </code></pre>
  
  <p>but if send the strin directly on the function:</p>
  
  <pre><code>{moment('20150201','YYYYMMDD')
  </code></pre>
  
  <p>it's works; what i'm doing wrong ?</p>