-
-
Save Mohammad-Faisal/331aee513c27d7a2e951f35a9f81446a to your computer and use it in GitHub Desktop.
This file contains 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
return ( | |
<ul> | |
{posts.map((post) => ( | |
<li onClick={event => { | |
console.log(event.target, 'clicked!'); // <- THIS IS BAD | |
}} key={post.id}>{post.title} | |
</li> | |
))} | |
</ul> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment