Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch videos from youtube playlists #35

Open
wants to merge 1 commit into
base: sprint-4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/pages/community.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useEffect, useState } from 'react';
import Layout from '@theme/Layout';
import { Icon } from '@iconify/react';
/* COMPONENTS */
Expand Down Expand Up @@ -208,9 +208,22 @@ const SubmitIssuesSection = () => {

/* PAGE Content */
function Community() {
const [communityMeetings, setCommunityMeetings] = useState();

useEffect(() => {
const fetchData = async () => {
const rawData = await fetch('https://www.youtube.com/playlist?list=PLdYKU4HjyLFRk0SdDWvkZlGMI5OnVfTM-');
const jsonData = await rawData.json();
console.log(jsonData);
};
});

return (
<Layout>
<PageHeader title={header.title} description={header.subtitle} />
<div className="my-24">
<h2>Youtube Fetch Render Test</h2>
</div>
<InfoBanner
description={header.banner.text}
icon={header.banner.icon}
Expand Down