Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/VinSpee/react-gcal-events-list

A Reusable react component that pulls events from your google calendar.
https://github.com/VinSpee/react-gcal-events-list

calendar google-calendar react

Last synced: about 1 month ago
JSON representation

A Reusable react component that pulls events from your google calendar.

Lists

README

        

# React Google Calendar Events List

## Setting it up w/ your calendar

Pass the prop `apiKey` to your [Google API
Key](https://console.developers.google.com/project), then set the prop
`calendarId` to your desired calendar's ID (find this from calendar.google.com
-> my calendars -> settings -> the calendar you want to map -> Calendar Address
-> Calendar ID).

## Example

https://codesandbox.io/s/xrwl1mk31z

```jsx
import React from 'react';
import { render } from 'react-dom';
import Calendar from 'react-google-calendar-events-list';

render(


Function as children



{({ loading, events }) =>
loading ?
loading
:
{JSON.stringify(events)}

}



Default output




,
document.getElementById('root'),
);
```