Skip to content

Instantly share code, notes, and snippets.

@rodoabad
Last active March 6, 2020 04:02
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 rodoabad/722c1f6b2105734335fed9984e193a10 to your computer and use it in GitHub Desktop.
Save rodoabad/722c1f6b2105734335fed9984e193a10 to your computer and use it in GitHub Desktop.
import React from 'react';
export const CommentList = ({
comments,
isLoading
}) => {
if (isLoading) {
return 'Loading';
}
if (comments.length === 0) {
return 'No comments yet';
}
}
CommentList.defaultProps = {
comments: []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment