Skip to content

Conversation

@JDuarthe
Copy link

@JDuarthe JDuarthe commented Apr 2, 2021

this are my change from challenge3

Copy link

@PacoMojica PacoMojica left a 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).

Comment on lines +3 to +7
const Index = () => (

<CardList/>

)

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 😆

Comment on lines +3 to +11
export default axios.create({
baseURL: 'https://www.googleapis.com/youtube/v3/',
params: {
part: 'snippet',
maxResults: 15,
key: process.env.API_KEY,
type: 'video',
}
})

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 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants