content: import React from 'react';
  import ReactDOM from 'react-dom';
  import DatePicker from 'react-datepicker';
  import moment from 'moment';
  
  // CSS Modules, react-datepicker-cssmodules.css
  import 'react-datepicker/dist/react-datepicker-cssmodules.css';
  
  class Example extends React.Component {
    constructor (props) {
      super(props)
      this.state = {
        startDate: moment(),
      };
      this.handleChange = this.handleChange.bind(this);
    }
  
    handleChange(date) {
      this.setState({
        startDate: date
      });
    }
  
    render() {
      return <DatePicker
          dateFormat="YYYY/MM/DD"
          selected={this.state.startDate}
          onChange={this.handleChange}
      />;
    }
  }
  
  ReactDOM.render(
      <Example />,
      document.getElementById('example')
  );