Skip to content

Instantly share code, notes, and snippets.

@Nedson202
Last active January 6, 2019 09:16
Show Gist options
  • Save Nedson202/6409fd53f6357a153d8fdbd7d2294cfd to your computer and use it in GitHub Desktop.
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
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