Last active
February 25, 2019 15:11
-
-
Save Nedson202/7b77f5d684aa0c02f986fdf96d089ad2 to your computer and use it in GitHub Desktop.
Root
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
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