Created
December 13, 2016 13:43
-
-
Save themasch/5cc880fc8d0259a74000bd521696494e 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
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