Last active
October 14, 2020 14:22
-
-
Save codebubb/3fdaf1256cb18f6a05bcd09ec893c490 to your computer and use it in GitHub Desktop.
React YouTube Viewer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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