Created
September 13, 2016 09:03
-
-
Save jnsdls/c0e3346971b9005cae3e1b48bc1d7e22 to your computer and use it in GitHub Desktop.
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
render() { | |
const { photo, style, nextPhoto } = this.props; | |
return (<div className="photo" style={style || {}}> | |
<div | |
className="photo-img" | |
onClick={nextPhoto} | |
style={{ backgroundImage: `url(${photo.image_url})` }} | |
/> | |
</div>); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment