Skip to content

Instantly share code, notes, and snippets.

@markopavlovic
Created October 10, 2020 10:06
Show Gist options
  • Save markopavlovic/97941f6160d2b960f1b3fda0f52312fa to your computer and use it in GitHub Desktop.
Save markopavlovic/97941f6160d2b960f1b3fda0f52312fa to your computer and use it in GitHub Desktop.
import React from "react";
import dateFns from "date-fns";
class Calendar extends React.Component {
state = {
currentMonth: new Date(),
selectedDate: new Date()
};
renderHeader() {}
renderDays() {}
renderCells() {}
onDateClick = day => {};
nextMonth = () => {};
prevMonth = () => {};
render() {
return (
<div className="calendar">
{this.renderHeader()}
{this.renderDays()}
{this.renderCells()}
</div>
);
}
}
export default Calendar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment