May 2018
Intermediate to advanced
470 pages
13h 54m
English
The content section will show the text of the post and the image if the post contains a photo.
mern-social/client/post/Post.js:
<CardContent className={classes.cardContent}> <Typography component="p" className={classes.text}> {this.props.post.text} </Typography> {this.props.post.photo && (<div className={classes.photo}> <img className={classes.media} src={'/api/posts/photo/'+this.props.post._id}/> </div>) }</CardContent>
Read now
Unlock full access