Skip to content

Instantly share code, notes, and snippets.

@joboccara
Created April 22, 2021 16:38
Show Gist options
  • Save joboccara/66bc7faa6a431d2a7e4a93a50260a666 to your computer and use it in GitHub Desktop.
Save joboccara/66bc7faa6a431d2a7e4a93a50260a666 to your computer and use it in GitHub Desktop.
const showComments = ({ comments }) => {
console.log("Comments is rendering");
return (
<ul>
{comments.map((comment) => (
<li key={comment}>{comment}</li>
))}
</ul>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment