Skip to content

Instantly share code, notes, and snippets.

@codebubb
Last active October 14, 2020 14:22
Show Gist options
  • Select an option

  • Save codebubb/3fdaf1256cb18f6a05bcd09ec893c490 to your computer and use it in GitHub Desktop.

Select an option

Save codebubb/3fdaf1256cb18f6a05bcd09ec893c490 to your computer and use it in GitHub Desktop.
React YouTube Viewer
import React, { useState, useEffect } from 'react';
import { Search } from './Search';
export function App() {
const [currentChannelId, setCurrentChannelId] = useState();
return (
<div className="app-container">
<h1>Latest YouTube Videos</h1>
<Search setCurrentChannelId={id => setCurrentChannelId(id)}/>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment