Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: total amount of comments selector
export const getAmountComments = createSelector(
(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