FullCalendar react event start - end code example
Example: fullcalendar react
import interactionPlugin from "@fullcalendar/interaction"; // needed for dayClick
export default class DemoApp extends React.Component {
render() {
return (
<FullCalendar dateClick={this.handleDateClick} plugins={[ dayGridPlugin, interactionPlugin ]} />
)
}
handleDateClick = (arg) => { // bind with an arrow function
alert(arg.dateStr)
}
}