Skip to content

Instantly share code, notes, and snippets.

@Nedson202
Last active February 25, 2019 15:11
Show Gist options
  • Save Nedson202/7b77f5d684aa0c02f986fdf96d089ad2 to your computer and use it in GitHub Desktop.
Save Nedson202/7b77f5d684aa0c02f986fdf96d089ad2 to your computer and use it in GitHub Desktop.
Root
import React, { Component } from "react";
import "../App.css";
import images from "../helper/images";
import ImageCard from "./ImageCard";
class App extends Component {
renderImages() {
return (
<div className="image-list">
{images.map(data => (
<ImageCard key={data.id} imageData={data} />
))}
</div>
);
}
render() {
return (
<div className="app">
<p className="page-title">The iDrag Imagery</p>
{this.renderImages()}
</div>
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment