-
Notifications
You must be signed in to change notification settings - Fork 74
Challenge3 #42
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
base: master
Are you sure you want to change the base?
Challenge3 #42
Conversation
Co-authored-by: PacoMojica <[email protected]>
Co-authored-by: PacoMojica <[email protected]>
Co-authored-by: PacoMojica <[email protected]>
Co-authored-by: PacoMojica <[email protected]>
Co-authored-by: PacoMojica <[email protected]>
PacoMojica
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Jesus, your challenge looks really good, great work!
Acceptance Criteria
- Videos in the Home View are fetched from the YouTube API and displayed correctly.
- Users can search for YouTube videos using the search field on the header.
- A video can be played from the Video Details View after clicking on it.
- The video information and related videos list are displayed correctly on the Video Details View.
- When a user clicks on a related video the video player, information and related videos list are updated.
Bonus Points
- Custom Hooks for API calls are implemented and tested correctly.
- Testing coverage is above 60%. (Please include a screenshot of the code coverage report in your PR description).
| const Index = () => ( | ||
|
|
||
| <CardList/> | ||
|
|
||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component looks so small 😆
| export default axios.create({ | ||
| baseURL: 'https://www.googleapis.com/youtube/v3/', | ||
| params: { | ||
| part: 'snippet', | ||
| maxResults: 15, | ||
| key: process.env.API_KEY, | ||
| type: 'video', | ||
| } | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is called useFetchData but it is not really a hook 🤔
this are my change from challenge3