Skip to content
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