Skip to content

Instantly share code, notes, and snippets.

@themasch
Created December 13, 2016 13:43
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 themasch/5cc880fc8d0259a74000bd521696494e to your computer and use it in GitHub Desktop.
Save themasch/5cc880fc8d0259a74000bd521696494e to your computer and use it in GitHub Desktop.
function Item(props) {
return <li>{props.message}</li>;
}
function TodoList() {
const todos = ['finish doc', 'submit pr', 'nag dan to review'];
return (
<ul>
{todos.map((message) => <Item key={message} message={message} />)}
</ul>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment