Skip to content

Instantly share code, notes, and snippets.

@eddyw
Created November 11, 2017 16:23
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 eddyw/c56e88b30cb3d07f4d6cfbfee266cd46 to your computer and use it in GitHub Desktop.
Save eddyw/c56e88b30cb3d07f4d6cfbfee266cd46 to your computer and use it in GitHub Desktop.
Map Component
const TodoList = () => (
<ul>
{todoList.map((item, key) => (
<li key={key}>{item.title} : {String(item.completed)}</li>
))}
</ul>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment