Created
August 25, 2017 15:24
-
-
Save gc-codesnippets/778d26cb10f8d73ceeab8e21976edac7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 from 'react' | |
| | |
| class Post extends React.Component { | |
| | |
| render () { | |
| return ( | |
| <div className='pa3 bg-black-05 ma3'> | |
| <div | |
| className='w-100' | |
| style={{ | |
| backgroundImage: `url(${this.props.post.imageUrl})`, | |
| backgroundSize: 'cover', | |
| paddingBottom: '100%', | |
| }} | |
| /> | |
| <div className='pt3'> | |
| {this.props.post.description} | |
| <span className='red f6 pointer dim' onClick={this._handleDelete}>Delete</span> | |
| </div> | |
| </div> | |
| ) | |
| } | |
| | |
| _handleDelete = () => { | |
| } | |
| } | |
| | |
| export default Post |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment