Last active
December 5, 2015 00:47
-
-
Save tlrobinson/5a7210619a760d68c96f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const App = ({ items }) => | |
| <List items={items} /> | |
| const List = ({ items }) => | |
| <ul> | |
| {items.map(item => | |
| <Item key={item.id} item={item} /> | |
| )} | |
| </ul> | |
| const Item = ({ name }) => | |
| <li> | |
| {name} | |
| </li> |
This file contains hidden or 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
| const App = ({ items }) => | |
| <List> | |
| {items.map(item => | |
| <Item key={item.id} item={item} /> | |
| )} | |
| </List> | |
| const List = ({ children }) => | |
| <ul>{children}</ul> | |
| const Item = ({ name }) => | |
| <li> | |
| {name} | |
| </li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment