Youtube clone with React
Try to make a simple youtube page using Youtube API.
- Default page - Search bar + List of most popular videos
- Play page - Page of clicked video(youtube) + Information of video + list of most popular videos
- Search result - Search bar + List of video
Outline
- About the project
- Process
- Structure
- Problem and solving
- What I learn
- Reference
-
About the project
✅ Simply clone the youtube website and materialization some function.
✅ Using youtube API
-
Process
- Fetch the youtube api and bring most popular videos.
- Make a search-bar to search videos through youtube API.
- Go to the video details and play videos when clicked.
-
Structure
| Page | Description |
|---|---|
| Default Page | ![]() Most popular video web page |
| Search | ![]() Search page |
| Search | ![]() Video selected |
-
Problem and solving
🥵 17/05/2022
❗ video detail page is not working!! ➡ Youtube don't use 'dislike count' anymore : so I removed it
✅ Done
❗ There are some weird blank background on the default page ➡ Add the background color to video_item information
✅ Done
-
What I learn
- The way using youtube API.
- Differnet between Fetch and Axios.
- Function component in React.
- React - hide the key.
- Seperate network from components.
- Quota exceed situation
-
Reference
- dream-coding
- React official website


