May 2018
Intermediate to advanced
470 pages
13h 54m
English
The comments section will contain all the comment related elements in the Comments component and will get props such as the postId, and the comments data, along with a state updating method that can be called when a comment is added or deleted in the Comments component.
mern-social/client/post/Post.js:
<Comments postId={this.props.post._id} comments={this.state.comments} updateComments={this.updateComments}/>
Read now
Unlock full access