Last active
January 6, 2019 09:16
-
-
Save Nedson202/6409fd53f6357a153d8fdbd7d2294cfd to your computer and use it in GitHub Desktop.
This is the entry point in the bootstrapped app using create-react-app
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 NetworkDetector from './Hoc/NetworkDetector'; | |
class App extends Component { | |
renderImage() { | |
return ( | |
<div className='image-list'> | |
{images.map(data => <img src={data.image} alt='random' key={data.id} className="image" />)} | |
</div> | |
) | |
} | |
render() { | |
return ( | |
<div className="App"> | |
<p className="page-title">The iDrag Imagery</p> | |
{this.renderImage()} | |
</div> | |
); | |
} | |
} | |
export default NetworkDetector(App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment