title: Moment.js with ReactJS (ES6)
body: <p>I am new to Moment.js and using ReactJS (ES6) for my project. How can I use <a href="http://momentjs.com/" rel="nofollow noreferrer">moment.js</a> to format a date?</p>
  <p>I want to format <code>post.date</code> in the below mentioned loop.</p>
  <pre><code>render() {
      return (
          &lt;div&gt;
              { 
              this.props.data.map((post,key) =&gt; 
                  &lt;div key={key} className=&quot;post-detail&quot;&gt;
                      &lt;h1&gt;{post.title}&lt;/h1&gt;
                      &lt;p&gt;{post.date}&lt;/p&gt;
                      &lt;p dangerouslySetInnerHTML={{__html: post.content}}&gt;&lt;/p&gt;
                      &lt;hr /&gt;
                  &lt;/div&gt;
              )}
          &lt;/div&gt;
      );
  }
  </code></pre>