Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active November 14, 2018 21:07
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/ae1e2a350cd847363c1f72cba5a7dfeb to your computer and use it in GitHub Desktop.
Save productioncoder/ae1e2a350cd847363c1f72cba5a7dfeb to your computer and use it in GitHub Desktop.
Youtube in React: comments state
{
"comments": {
"byVideo": {
"videoId1": {
"nextPageToken": "abcdefg",
"ids": ["commentId1", "commentId2", "commentId3"]
},
"videoId2": {
"nextPageToken": "some-cryptic-token",
"ids": ["commentId4", "commentId20"]
}
},
"byId": {
"commentId1": {
},
"commentId2": {
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment