Skip to content

Instantly share code, notes, and snippets.

@themasch
Created December 13, 2016 13:43
Show Gist options
  • 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