Created
November 24, 2018 11:43
-
-
Save productioncoder/60a7e4a0dcd387545a04589de1eb2fc6 to your computer and use it in GitHub Desktop.
Youtube in React: performing search for videos request
This file contains 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
/* ... */ | |
class Search extends React.Component { | |
/* ... */ | |
searchForVideos() { | |
const searchQuery = this.getSearchQuery(); | |
if(this.props.youtubeApiLoaded) { | |
this.props.searchForVideos(searchQuery); | |
} | |
} | |
} | |
/* ... */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment