Created
October 10, 2020 10:06
-
-
Save markopavlovic/97941f6160d2b960f1b3fda0f52312fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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