const request = gapi.client.calendar.events.insert({
calendarId: calendarId,
resource: event
});
import { gapi } from "gapi-script";
componentDidMount() {
this.getEvents();
}
getEvents = () => {
const start = () => {
gapi.client.init({/*CODE*/});
};
gapi.load("client", start);
};