import Calendar2 from '..'; import React from 'react'; import ReactDOM from 'react-dom'; import dayjs from 'dayjs'; function onSelect(value) { console.log(value.format('L')); } function onPanelChange(value, reason) { console.log('Visible month changed to %s from <%s>', value.format('YYYY-MM'), reason); } ReactDOM.render( dayjs('2018-01', 'YYYY-MM', true)) as any} onPanelChange={onPanelChange} />, document.getElementById('calendar2-demo-6'));