-
Notifications
You must be signed in to change notification settings - Fork 0
Mini challenge 3 #2
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?
Conversation
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.
Looks good to me 👍 just missing the tests
| } | ||
| // Make sure the client is loaded before calling this method. | ||
| function execute(search) { | ||
| return gapi.client.youtube.search |
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.
What if gapi is not loaded yet by the time your components needs to use it? You might want to use youtube API inside a hook in react.
|
|
||
| return ( | ||
| <Container key={id}> | ||
| <Button onClick={() => history.push(`/viewer/${id}`)}> |
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.
You can use Link from react router
No description provided.