1import React from 'react';
2import Moment from 'react-moment';
3
4export default class MyComponent extends React.Component {
5 render() {
6 return (
7 const dateToFormat = '1976-04-19';
8 <Moment>{dateToFormat}</Moment>
9 );
10 }
11}