Skip to content

Instantly share code, notes, and snippets.

@mkotsollaris
Created June 24, 2018 02:36
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 mkotsollaris/105479c0799b034bfdfe0f792a9d362d to your computer and use it in GitHub Desktop.
Save mkotsollaris/105479c0799b034bfdfe0f792a9d362d to your computer and use it in GitHub Desktop.
render() {
return (
<div className="App">
{
list.map(item =>
<div>{item.title}</div>
)
}
</div>
);
}
@mkotsollaris
Copy link
Author

const list = [
  {
    title: 'React',
    url: 'https://facebook.github.io/react/',
    author: 'Jordan Wale',
    num_comments: 3,
    points: 4,
    objectID: 0,
  },
  {
    title: 'Redux',
    url: 'https://github.com/reactjs/redux',
    author: 'Dan Abramov',
    num_comments: 2,
    points: 5,
    objectID: 0,
  },
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment