Last active
March 26, 2019 18:29
-
-
Save arshaw/3fb1d89f730dc0ef6e5945955595d848 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
class MyApp extends Component { | |
fullCalendar = React.createRef() | |
render() { | |
return ( | |
<div> | |
<button onClick={ this.handleNext }>goto next</button> | |
<FullCalendar ref={ this.fullCalendar } /> | |
</div> | |
) | |
} | |
handleNext = () => { | |
let calendarApi = this.fullCalendar.current.getApi() | |
calendarApi.next() | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like it, feels really clean.