Skip to content

Instantly share code, notes, and snippets.

@danhollick
Last active October 9, 2018 13:34
Show Gist options
  • Select an option

  • Save danhollick/d70396707f7fcbcb892f2ffdd9135bfe to your computer and use it in GitHub Desktop.

Select an option

Save danhollick/d70396707f7fcbcb892f2ffdd9135bfe to your computer and use it in GitHub Desktop.
class App extends Component {
state = { images: [
{ name: '', url:'' }
]}
render() {
return (
<div className="App" >
{this.state.images.map( //1
(frame,i) =>
<div key={i} >//2
<img src={frame.url} alt={"figma component"}/> //3
<p>{frame.name}</p> //3
</div>
)}
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment