Home page
Edit code

Render the input field

import React from 'react';
import moment from 'moment';
import DayPickerInput from 'react-day-picker/DayPickerInput';

import 'react-day-picker/lib/style.css';

export default function Example() {
  return (
    <div>
      <p>Please type a day:</p>
      <DayPickerInput placeholder="MM/DD/YYYY" />
    </div>
  );
}