Created
April 22, 2021 16:38
-
-
Save joboccara/66bc7faa6a431d2a7e4a93a50260a666 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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