Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active November 18, 2018 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/3d7f0e79091f616fb2b477ab93445ef4 to your computer and use it in GitHub Desktop.
Save productioncoder/3d7f0e79091f616fb2b477ab93445ef4 to your computer and use it in GitHub Desktop.
Youtube in React: adding search to our Redux state
{
"videos": {},
"channels": {},
"comment": {},
"api": {},
"search": {
"query": "surfing",
"totalResults": 200,
"nextPageToken": "some-cryptic-token",
"results": [{
"kind": "youtube#searchResult",
"id": {
"kind": "youtube#video",
"videoId": "videoId1"
},
"snippet": {
"title": "Big Wave surfing compilation"
}
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment