我尝试使用FullCalendar在我的React项目中显示Google,方法是跟踪他们的Google说明中的事件,并得到关于无法到达的代码的错误信息。然后我试着用它来做出反应。结果是一个没有数据的好日历。
这是我的密码。正如您所看到的,我使用的不是“日历”,而是FullCalendar。
import React from "react";
import FullCalendar from '@fullcalendar/react'
import {Calendar} from "@fullcalendar/core";
import timeGridPlugin from "@fullcalendar/timegrid";
import googleCalendarPlugin from '@fullcalendar/google-calendar';
const GoogleCalendar = () => {
return (
<FullCalendar
plugins={[timeGridPlugin, googleCalendarPlugin]}
initialView="timeGridDay"
googleCalendarApiKey= <MY_API_KEY>
events={[
{ googleCalendarId: <MY_CALENDAR_ID> }
]}
/>
);
};
export default GoogleCalendar;
有谁可以帮我?我没有任何运气得到一个谷歌日历显示在页面上!
非常感谢
发布于 2022-03-14 19:27:16
你需要把你的日历公之于众
https://stackoverflow.com/questions/70733177
复制相似问题