Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: total amount of comments selector
export const getAmountComments = createSelector(
getVideoById,
(video) => {
if (video) {
return video.statistics.commentCount;
}
return 0;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.